Changes in libcfa/src/device/cpu.cfa [cf85f96:ab4a595]
- File:
-
- 1 edited
-
libcfa/src/device/cpu.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/device/cpu.cfa
rcf85f96 rab4a595 144 144 // Count number of cpus in the system 145 145 static int count_cpus(void) { 146 const char * fpath = "/sys/devices/system/cpu/ present";146 const char * fpath = "/sys/devices/system/cpu/online"; 147 147 int fd = open(fpath, 0, O_RDONLY); 148 148 /* paranoid */ verifyf(fd >= 0, "Could not open file %s", fpath); … … 422 422 } 423 423 } 424 425 cpu_info_t cpu_info;
Note:
See TracChangeset
for help on using the changeset viewer.