Re: [PATCH][RFC] Proposal for a new watchdog interface using sysfs

From: Rusty Lynch (rusty@linux.co.intel.com)
Date: Fri Feb 14 2003 - 18:17:30 EST


On Fri, 2003-02-14 at 13:35, Pavel Machek wrote:
> Hi!
>
> > > > temperature (RO)
> > > > - show: prints temperature in degrees farenheit
> > >
> > > Please, use degrees celsius to keep it consistent with ACPI and
> > > lm-sensors.
> >
> > The ioctl interface is farenheit and has been since before Linux 2.0
> > That may not have been smart but we are stuck with it there at
> > least.
>
> Oops, that's bad.
>
> But I believe we should make it celsius in /sys, even if it means
> conversion somewhere.
>
> Pavel

The watchdog infrastructure would just show what ever integer the driver
provides via the watchdog_ops.get_temperature() function pointer, so it
would be up to the driver developer to decide if the data is really
Fahrenheit or whatever.

    --rustyl

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:59 EST