Lines 1-6
Link Here
|
1 |
#cpuinfo.py |
1 |
#cpuinfo.py |
2 |
#This is a function library to get |
2 |
#This is a function library to get |
3 |
#informations about CPUs and its PHC data |
3 |
#informations about CPUs and its PHC data |
|
|
4 |
#Modified by Fabio Veronese fveronese85*at*gmail.com 22 Mar 2011 |
4 |
|
5 |
|
5 |
|
6 |
|
6 |
import os, string |
7 |
import os, string |
Lines 30-35
Link Here
|
30 |
if os.path.exists('/proc/acpi/processor/CPU'+cpunr): |
31 |
if os.path.exists('/proc/acpi/processor/CPU'+cpunr): |
31 |
##remember ACPI Pathname |
32 |
##remember ACPI Pathname |
32 |
self.data[cpunr]['acpi']['acpiname']='/proc/acpi/processor/CPU'+cpunr |
33 |
self.data[cpunr]['acpi']['acpiname']='/proc/acpi/processor/CPU'+cpunr |
|
|
34 |
elif os.path.exists('/sys/devices/system/cpu/cpu'+cpunr+'/thermal_throttle'): |
35 |
##here some throttling infos for 2.6.38 and maybe laters |
36 |
#self.data[cpunr]['acpi']['acpiname']='/sys/devices/system/cpu/cpu'+cpunr+'/thermal_throttle' |
37 |
self.data[cpunr]['acpi']['acpiname']='' |
33 |
else: |
38 |
else: |
34 |
self.data[cpunr]['acpi']['exist']=False |
39 |
self.data[cpunr]['acpi']['exist']=False |
35 |
# For some reason we have to fallback on the old function... |
40 |
# For some reason we have to fallback on the old function... |