]> granicus.if.org Git - procps-ng/commit
Use 7 cpu numbers not 4 for Hertz Hack
authorCraig Small <csmall@enc.com.au>
Fri, 7 Oct 2011 03:35:16 +0000 (14:35 +1100)
committerCraig Small <csmall@enc.com.au>
Fri, 7 Oct 2011 03:35:16 +0000 (14:35 +1100)
commit13ce6ebdf0acd9fc3b26c48497ef2c0e8b99d074
tree63f0790c8a6c8e78f6c8d22d8f05eb130181f1bc
parenta5750100a026a85cbc51d32f91c40205746c737b
Use 7 cpu numbers not 4 for Hertz Hack

For the small number of devices that we cannot get Hertz out of ELF
notes but the cpu numbers make sense (ie not kFreeBSD) there is a hack
by using the CPU numbers. The problem is there was 4 numbers, now there
are 7. This fixes the hack by adding all 7 to get a more correct number.

This is from Debian patch sysinfo_7_numbers
Bug-Debian: http://bugs.debian.org/460331
proc/sysinfo.c