Logo Search packages:      
Sourcecode: guidance-power-manager version File versions

def powermanage::PowerManage::cpuIsOnline (   self,
  cpu 
)

Check if cpu is online. CPU0 is always online, CPU1 might be unplugged. Since 
    /sys/devices/system/cpu/$cpu/cpufreq is not readable for normal users, we just 
    check for the cpufreq subdir (which is where it's really needed anyway).

Definition at line 424 of file powermanage.py.

00424                              :
        """ Check if cpu is online. CPU0 is always online, CPU1 might be unplugged. Since 
            /sys/devices/system/cpu/$cpu/cpufreq is not readable for normal users, we just 
            check for the cpufreq subdir (which is where it's really needed anyway).
        """
        if cpu == "cpu0": return True
        else: return os.path.isdir("/sys/devices/system/cpu/"+cpu+"/cpufreq")

    def getCpuState(self,cpu):


Generated by  Doxygen 1.6.0   Back to index