diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-11 11:43:44 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-11 11:43:44 -0500 |
commit | 08bbf7c85be860a04e0be588d9ae4d635faf4c28 (patch) | |
tree | 93b305010cdb2d28911ea29351a7b7c1ee67aee6 | |
parent | 7abcdb6683ea49819e25f88536f38076264869a6 (diff) | |
download | tdelibs-08bbf7c85be860a04e0be588d9ae4d635faf4c28.tar.gz tdelibs-08bbf7c85be860a04e0be588d9ae4d635faf4c28.zip |
Set max and min frequency to current frequency when no CPU governor is available
-rw-r--r-- | tdecore/tdehardwaredevices.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tdecore/tdehardwaredevices.cpp b/tdecore/tdehardwaredevices.cpp index 225788b7f..bb979f79a 100644 --- a/tdecore/tdehardwaredevices.cpp +++ b/tdecore/tdehardwaredevices.cpp @@ -2300,6 +2300,14 @@ void TDEHardwareDevices::processModifiedCPUs() { frequencylist.append(TQString("%1").arg(maxfrequencyInt)); } } + else { + if (have_frequency) { + if (cdevice) { + minfrequency = cdevice->frequency(); + maxfrequency = cdevice->frequency(); + } + } + } // Update CPU information structure if (cdevice) { |