Changeset a8b0618 for libcfa/src


Ignore:
Timestamp:
Jun 14, 2021, 4:01:48 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
07033ce
Parents:
9824500
Message:

Changed libcfa to use cpu/present instead of cpu/possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/device/cpu.cfa

    r9824500 ra8b0618  
    144144// Count number of cpus in the system
    145145static int count_cpus(void) {
    146         const char * fpath = "/sys/devices/system/cpu/possible";
     146        const char * fpath = "/sys/devices/system/cpu/present";
    147147        int fd = open(fpath, 0, O_RDONLY);
    148148        /* paranoid */ verifyf(fd >= 0, "Could not open file %s", fpath);
Note: See TracChangeset for help on using the changeset viewer.