summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehardwaredevices.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehardwaredevices.h')
-rw-r--r--tdecore/tdehardwaredevices.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tdecore/tdehardwaredevices.h b/tdecore/tdehardwaredevices.h
index 907cdb65b..1f87301c5 100644
--- a/tdecore/tdehardwaredevices.h
+++ b/tdecore/tdehardwaredevices.h
@@ -801,6 +801,11 @@ class TDECORE_EXPORT TDECPUDevice : public TDEGenericDevice
*/
void setMaximumScalingFrequency(double fr);
+ /**
+ * @return an integer with the core number, starting at 0
+ */
+ int coreNumber();
+
protected:
/**
* @param fr a double with the current CPU frequency in MHz, if available
@@ -856,6 +861,12 @@ class TDECORE_EXPORT TDECPUDevice : public TDEGenericDevice
*/
void internalSetAvailableGovernors(TQStringList gp);
+ /**
+ * @param cn an integer with the core number, starting at 0
+ * @internal
+ */
+ void internalSetCoreNumber(int cn);
+
private:
double m_frequency;
double m_minfrequency;
@@ -866,6 +877,7 @@ class TDECORE_EXPORT TDECPUDevice : public TDEGenericDevice
TQStringList m_tiedprocs;
TQStringList m_frequencies;
TQStringList m_governers;
+ int m_corenumber;
friend class TDEHardwareDevices;
};