Changes in libcfa/src/device/cpu.cfa [ab4a595:72bd9cd]
- File:
-
- 1 edited
-
libcfa/src/device/cpu.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/device/cpu.cfa
rab4a595 r72bd9cd 144 144 // Count number of cpus in the system 145 145 static int count_cpus(void) { 146 const char * fpath = "/sys/devices/system/cpu/ online";146 const char * fpath = "/sys/devices/system/cpu/present"; 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.