|
|
@ -863,11 +863,13 @@ void TDEHardwareDevices::processModifiedCPUs() {
|
|
|
|
if (modified) {
|
|
|
|
if (modified) {
|
|
|
|
for (processorNumber=0; processorNumber<processorCount; processorNumber++) {
|
|
|
|
for (processorNumber=0; processorNumber<processorCount; processorNumber++) {
|
|
|
|
TDEGenericDevice* hwdevice = findCPUBySystemPath(TQString("/sys/devices/system/cpu/cpu%1").arg(processorNumber));
|
|
|
|
TDEGenericDevice* hwdevice = findCPUBySystemPath(TQString("/sys/devices/system/cpu/cpu%1").arg(processorNumber));
|
|
|
|
|
|
|
|
if (hwdevice) {
|
|
|
|
// Signal new information available
|
|
|
|
// Signal new information available
|
|
|
|
emit hardwareUpdated(hwdevice);
|
|
|
|
emit hardwareUpdated(hwdevice);
|
|
|
|
emit hardwareEvent(TDEHardwareEvent::HardwareUpdated, hwdevice->uniqueID());
|
|
|
|
emit hardwareEvent(TDEHardwareEvent::HardwareUpdated, hwdevice->uniqueID());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef CPUPROFILING
|
|
|
|
#ifdef CPUPROFILING
|
|
|
|
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time2);
|
|
|
|
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time2);
|
|
|
|