From 08bbf7c85be860a04e0be588d9ae4d635faf4c28 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 11 Oct 2012 11:43:44 -0500 Subject: Set max and min frequency to current frequency when no CPU governor is available --- tdecore/tdehardwaredevices.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tdecore/tdehardwaredevices.cpp') 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) { -- cgit v1.2.1