[lm-sensors] [PATCH] hwmon: (adt7475) Cache limits for 60 seconds

Hans de Goede hdegoede at redhat.com
Mon Nov 9 11:52:14 CET 2009


Ack.

On 11/09/2009 11:38 AM, Jean Delvare wrote:
> The comment says that limits are cached for 60 seconds but the code
> actually caches them for only 2 seconds. Align the code on the
> comment, as 60 seconds make more sense.
>
> Signed-off-by: Jean Delvare<khali at linux-fr.org>
> Cc: Hans de Goede<hdegoede at redhat.com>
> Cc: Jordan Crouse<jordan at cosmicpenguin.net>
> ---
>   drivers/hwmon/adt7475.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-2.6.32-rc6.orig/drivers/hwmon/adt7475.c	2009-11-08 19:22:06.000000000 +0100
> +++ linux-2.6.32-rc6/drivers/hwmon/adt7475.c	2009-11-09 10:28:59.000000000 +0100
> @@ -1151,7 +1151,7 @@ static struct adt7475_data *adt7475_upda
>   	}
>
>   	/* Limits and settings, should never change update every 60 seconds */
> -	if (time_after(jiffies, data->limits_updated + HZ * 2) ||
> +	if (time_after(jiffies, data->limits_updated + HZ * 60) ||
>   	    !data->valid) {
>   		data->config5 = adt7475_read(REG_CONFIG5);
>
>
>




More information about the lm-sensors mailing list