summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-11 11:43:44 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-11 11:43:44 -0500
commit08bbf7c85be860a04e0be588d9ae4d635faf4c28 (patch)
tree93b305010cdb2d28911ea29351a7b7c1ee67aee6
parent7abcdb6683ea49819e25f88536f38076264869a6 (diff)
downloadtdelibs-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.cpp8
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) {