From 7abcdb6683ea49819e25f88536f38076264869a6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 11 Oct 2012 11:26:39 -0500 Subject: Add core number to CPU information structure --- tdecore/tdehardwaredevices.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tdecore/tdehardwaredevices.h') 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; }; -- cgit v1.2.1