summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdecpudevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehw/tdecpudevice.cpp')
-rw-r--r--tdecore/tdehw/tdecpudevice.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tdecore/tdehw/tdecpudevice.cpp b/tdecore/tdehw/tdecpudevice.cpp
index c5514ff4e..40b9ad6e2 100644
--- a/tdecore/tdehw/tdecpudevice.cpp
+++ b/tdecore/tdehw/tdecpudevice.cpp
@@ -130,7 +130,7 @@ bool TDECPUDevice::canSetGovernor() {
TQString governornode = systemPath() + "/cpufreq/scaling_governor";
int rval = access (governornode.ascii(), W_OK);
if (rval == 0) {
- return TRUE;
+ return true;
}
#ifdef WITH_TDEHWLIB_DAEMONS
@@ -168,11 +168,11 @@ bool TDECPUDevice::canSetGovernor() {
}
#endif // WITH_HAL
- return FALSE;
+ return false;
}
void TDECPUDevice::setGovernor(TQString gv) {
- bool setGovernorDone = FALSE;
+ bool setGovernorDone = false;
TQString governornode = systemPath() + "/cpufreq/scaling_governor";
TQFile file( governornode );
@@ -180,7 +180,7 @@ void TDECPUDevice::setGovernor(TQString gv) {
TQTextStream stream( &file );
stream << gv.lower();
file.close();
- setGovernorDone = TRUE;
+ setGovernorDone = true;
}
#ifdef WITH_TDEHWLIB_DAEMONS
@@ -194,7 +194,7 @@ void TDECPUDevice::setGovernor(TQString gv) {
params << TQT_DBusData::fromInt32(coreNumber()) << TQT_DBusData::fromString(gv.lower());
TQT_DBusMessage reply = hardwareControl.sendWithReply("SetCPUGovernor", params);
if (reply.type() == TQT_DBusMessage::ReplyMessage) {
- setGovernorDone = TRUE;
+ setGovernorDone = true;
}
}
}
@@ -212,7 +212,7 @@ void TDECPUDevice::setGovernor(TQString gv) {
params << TQT_DBusData::fromString(gv.lower());
TQT_DBusMessage reply = cpuFreqControl.sendWithReply("SetCPUFreqGovernor", params);
if (reply.type() == TQT_DBusMessage::ReplyMessage && reply.count() == 1) {
- setGovernorDone = TRUE;
+ setGovernorDone = true;
}
}
}
@@ -229,10 +229,10 @@ bool TDECPUDevice::canSetMaximumScalingFrequency() {
TQString freqnode = systemPath() + "/cpufreq/scaling_max_freq";
int rval = access (freqnode.ascii(), W_OK);
if (rval == 0) {
- return TRUE;
+ return true;
}
else {
- return FALSE;
+ return false;
}
}