lkml.org 
[lkml]   [2014]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: coretemp.0 folder contents changed
On 05/05/2014 10:32 AM, Guenter Roeck wrote:
> On Mon, May 05, 2014 at 10:13:11AM -0700, Srinivas Pandruvada wrote:
>> Hi,
>>
>> for kernel : 3.15.rc3 .
>>
>> Is there any change in the coretemp? Previously we used to see,
>> tempx data (like temp2_input, temp2_max etc.)
>> /sys/devices/platform/coretemp.0/.
>>
> That isn't where you are supposed to look for hwmon attributes.
>
>> Now We don't see them. Now we have to go
>> /sys/devices/platform/coretemp.0/hwmon/hwmon?/ to get these values.
>>
> This is also not the correct location.
>
> You should be looking in /sys/class/hwmon/hwmonX/.
>
> There will be a name attribute either in /sys/class/hwmon/hwmonX/name
> or in /sys/class/hwmon/hwmonX/device/name. For coretemp, the value
> reported in the name attribute will be 'coretemp'. This defines the
> directory where the actual sensor attributes will be located.
>
> A better approach might be to use libsensors instead of directly
> accessing attributes.
>
> To give you the background, hwmon attributes are in the process of
> being moved from the parent device to the hwmon device, or from
> /sys/class/hwmon/hwmonX/device/ to /sys/class/hwmon/hwmonX/,
> as part of an effort to streamline the code and make it more
> consistent and maintainable.
>
> Guenter
>
Thanks for your quick reply.

-Srinivas


\
 
 \ /
  Last update: 2014-05-05 20:21    [W:0.063 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site