Changes in libcfa/src/device/cpu.cfa [ab4a595:ddd2ec9]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/device/cpu.cfa
rab4a595 rddd2ec9 159 159 160 160 const char * _; 161 int cnt = read_width(buff, r - 1, &_); 162 /* paranoid */ verify(cnt == count_prefix_dirs("/sys/devices/system/cpu", "cpu")); 163 return cnt; 161 return read_width(buff, r - 1, &_);; 164 162 } 165 163 … … 238 236 { 239 237 raw_cache_instance ** raw = alloc(cpus); 238 239 // TODO: this loop is broken, it only works if the present cpu start at 0 and are contiguous which is not guaranteed. 240 240 for(i; cpus) { 241 241 raw[i] = alloc(cache_levels);
Note: See TracChangeset
for help on using the changeset viewer.