#8 get_class_device_attribute not reading sysfs attributes

open
nobody
None
5
2008-09-28
2008-09-28
Wiz
No

Hi,

I'm currently having a two batteries laptop and experiencing instant cpufreqd crash and both of them are pluged in.
By expending logs / debuging I have seen sysfs values where all at NULL.
I looked over some other programs that use sysfs_open_attribute, and have seen they also use sysfs_read_attribute.
Adding a call to this function corrected my problem, even if I don't know why it worked with only one battery (battery independent, only both of them crashed cpufreqd)

Patch uploaded.

Discussion

  • Wiz
    Wiz
    2008-09-28

     
    Attachments