Re: [PATCH 2/3] hwmon: Fix applesmc temperature handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 11, 2011 at 09:36:22PM +0200, Henrik Rydberg wrote:
> instance, on some models, remove the battery and some temperature
> sensors will start to oscillate between zero and max. Some time ago, I
> tried to come up with a patch which would detect this behavior, so far
> without positive reports. If anything, it would make sense to filter
> the list of available sensors, either dynamically (removing it from
> the sysfs tree) or by clamping the value to zero or
> something. Reporting an error does not seem very useful.

We *know* that the value is incorrect. How is giving it to userspace 
without that information in any way helpful? Once userspace has opened 
the file and performed read(), we need to give it something.

-- 
Matthew Garrett | mjg59@xxxxxxxxxxxxx

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux