Changes in libcfa/src/device/cpu.cfa [72bd9cd:ab4a595]
- File:
-
- 1 edited
-
libcfa/src/device/cpu.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/device/cpu.cfa
r72bd9cd 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);
Note:
See TracChangeset
for help on using the changeset viewer.