diff options
Diffstat (limited to 'src/kpowersave.cpp')
-rw-r--r-- | src/kpowersave.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kpowersave.cpp b/src/kpowersave.cpp index c814375..b73420e 100644 --- a/src/kpowersave.cpp +++ b/src/kpowersave.cpp @@ -1861,7 +1861,7 @@ void kpowersave::setSchemeSettings(){ } // --> set CPU Freq settings - if(hwinfo->supportCPUFreq()) { + if(hwinfo->supportCPUFreq() && hwinfo->isCpuFreqAllowed()) { hwinfo->setCPUFreq( settings->cpuFreqPolicy, settings->cpuFreqDynamicPerformance); } @@ -2250,7 +2250,7 @@ void kpowersave::handleResumeSignal() { setAutoDimm(true); // reset the CPU Freq Policy ... for more see https://bugzilla.novell.com/show_bug.cgi?id=223164 - if(hwinfo->supportCPUFreq()) { + if(hwinfo->supportCPUFreq() && hwinfo->isCpuFreqAllowed()) { hwinfo->setCPUFreq( settings->cpuFreqPolicy, settings->cpuFreqDynamicPerformance ); } |