summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehardwaredevices.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-11 11:26:39 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-11 11:26:39 -0500
commit7abcdb6683ea49819e25f88536f38076264869a6 (patch)
treec2d92791cd5a84e892446ed320298f67d0d53b3b /tdecore/tdehardwaredevices.h
parent8e467d8b605da6ada6e6896a87116c2522734efd (diff)
downloadtdelibs-7abcdb6683ea49819e25f88536f38076264869a6.tar.gz
tdelibs-7abcdb6683ea49819e25f88536f38076264869a6.zip
Add core number to CPU information structure
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;
};