diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-11 11:26:39 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-11 11:26:39 -0500 |
commit | 7abcdb6683ea49819e25f88536f38076264869a6 (patch) | |
tree | c2d92791cd5a84e892446ed320298f67d0d53b3b /tdecore/tdehardwaredevices.h | |
parent | 8e467d8b605da6ada6e6896a87116c2522734efd (diff) | |
download | tdelibs-7abcdb6683ea49819e25f88536f38076264869a6.tar.gz tdelibs-7abcdb6683ea49819e25f88536f38076264869a6.zip |
Add core number to CPU information structure
Diffstat (limited to 'tdecore/tdehardwaredevices.h')
-rw-r--r-- | tdecore/tdehardwaredevices.h | 12 |
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; }; |