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

def powermanage::PowerManage::getCpuPolicy (   self  ) 

Translate current CPU frequency governor into policy 

Definition at line 393 of file powermanage.py.

00393                           :
        """ Translate current CPU frequency governor into policy """
        if not self.USE_CPUFREQ or not self.hasCpuFreqGovernors:
            return ""
        gov = self.cpufreq.GetCPUFreqGovernor()
        for policy in self.cpu_policy.keys():
            if gov in self.cpu_policy[policy]:
                return policy.split('/')[0]   # strip ac or battery off
        return gov  ## return as-is - no conversion

    def setCpuPolicy(self,policy):


Generated by  Doxygen 1.6.0   Back to index