[lm-sensors] [PATCH 1/4] hwmon: (coretemp) adding package thermal info support

Guenter Roeck guenter.roeck at ericsson.com
Thu Jul 15 05:06:34 CEST 2010


On Wed, Jul 14, 2010 at 10:46:41PM -0400, Chen Gong wrote:
> IA32_PACKAGE_THERM_STATUS can supply a thermal status from
> a package level granularity. It is shared in each physical
> processor package. Now put it under /sys directory.
> 
> Signed-off-by: Chen Gong <gong.chen at linux.intel.com>
> ---
>  Documentation/hwmon/sysfs-interface |    5 +++++
>  arch/x86/include/asm/msr-index.h    |    1 +
>  drivers/hwmon/coretemp.c            |   16 ++++++++++++++--
>  3 files changed, 20 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
> index d4e2917..96e9f18 100644
> --- a/Documentation/hwmon/sysfs-interface
> +++ b/Documentation/hwmon/sysfs-interface
> @@ -284,6 +284,11 @@ temp[1-*]_input Temperature input value.
>  		Unit: millidegree Celsius
>  		RO
>  
> +pkg_temp[1-*]_input
> +		Package temperature input value.
> +		Unit: millidegree Celsius
> +		RO
> +

Unless I am missing something, this is just another temperature sensor.
You should just name it temp2_input; there should be no need to change the API.

Guenter




More information about the lm-sensors mailing list