* [lm-sensors] [PATCH] hwmon: (tmp401) Drop redundant safety on cache lifetime
@ 2013-05-19 14:57 Jean Delvare
2013-05-19 15:05 ` Guenter Roeck
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jean Delvare @ 2013-05-19 14:57 UTC (permalink / raw)
To: lm-sensors
time_after (as opposed to time_after_equal) already ensures that the
cache lifetime is at least as much as requested. There is no point in
manually adding another jiffy to that value, and this can confuse the
reader into wrong interpretation.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Guenter Roeck <linux@roeck-us.net>
---
drivers/hwmon/tmp401.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-3.10-rc1.orig/drivers/hwmon/tmp401.c 2013-05-13 15:27:46.025131385 +0200
+++ linux-3.10-rc1/drivers/hwmon/tmp401.c 2013-05-19 16:33:09.964274086 +0200
@@ -240,7 +240,7 @@ static struct tmp401_data *tmp401_update
mutex_lock(&data->update_lock);
next_update = data->last_updated +
- msecs_to_jiffies(data->update_interval) + 1;
+ msecs_to_jiffies(data->update_interval);
if (time_after(jiffies, next_update) || !data->valid) {
if (data->kind != tmp432) {
/*
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [lm-sensors] [PATCH] hwmon: (tmp401) Drop redundant safety on cache lifetime
2013-05-19 14:57 [lm-sensors] [PATCH] hwmon: (tmp401) Drop redundant safety on cache lifetime Jean Delvare
@ 2013-05-19 15:05 ` Guenter Roeck
2013-05-19 15:17 ` Jean Delvare
2013-05-19 15:19 ` Guenter Roeck
2 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2013-05-19 15:05 UTC (permalink / raw)
To: lm-sensors
On Sun, May 19, 2013 at 04:57:30PM +0200, Jean Delvare wrote:
> time_after (as opposed to time_after_equal) already ensures that the
> cache lifetime is at least as much as requested. There is no point in
> manually adding another jiffy to that value, and this can confuse the
> reader into wrong interpretation.
>
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
> Cc: Imre Deak <imre.deak@intel.com>
> Cc: Guenter Roeck <linux@roeck-us.net>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Are you going to take the series, or do you want me to handle it ?
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [lm-sensors] [PATCH] hwmon: (tmp401) Drop redundant safety on cache lifetime
2013-05-19 14:57 [lm-sensors] [PATCH] hwmon: (tmp401) Drop redundant safety on cache lifetime Jean Delvare
2013-05-19 15:05 ` Guenter Roeck
@ 2013-05-19 15:17 ` Jean Delvare
2013-05-19 15:19 ` Guenter Roeck
2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2013-05-19 15:17 UTC (permalink / raw)
To: lm-sensors
On Sun, 19 May 2013 08:05:37 -0700, Guenter Roeck wrote:
> On Sun, May 19, 2013 at 04:57:30PM +0200, Jean Delvare wrote:
> > time_after (as opposed to time_after_equal) already ensures that the
> > cache lifetime is at least as much as requested. There is no point in
> > manually adding another jiffy to that value, and this can confuse the
> > reader into wrong interpretation.
> >
> > Signed-off-by: Jean Delvare <khali@linux-fr.org>
> > Cc: Imre Deak <imre.deak@intel.com>
> > Cc: Guenter Roeck <linux@roeck-us.net>
>
> Acked-by: Guenter Roeck <linux@roeck-us.net>
>
> Are you going to take the series, or do you want me to handle it ?
You take tmp401 and I take lm63 and lm90?
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [lm-sensors] [PATCH] hwmon: (tmp401) Drop redundant safety on cache lifetime
2013-05-19 14:57 [lm-sensors] [PATCH] hwmon: (tmp401) Drop redundant safety on cache lifetime Jean Delvare
2013-05-19 15:05 ` Guenter Roeck
2013-05-19 15:17 ` Jean Delvare
@ 2013-05-19 15:19 ` Guenter Roeck
2 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2013-05-19 15:19 UTC (permalink / raw)
To: lm-sensors
On Sun, May 19, 2013 at 05:17:47PM +0200, Jean Delvare wrote:
> On Sun, 19 May 2013 08:05:37 -0700, Guenter Roeck wrote:
> > On Sun, May 19, 2013 at 04:57:30PM +0200, Jean Delvare wrote:
> > > time_after (as opposed to time_after_equal) already ensures that the
> > > cache lifetime is at least as much as requested. There is no point in
> > > manually adding another jiffy to that value, and this can confuse the
> > > reader into wrong interpretation.
> > >
> > > Signed-off-by: Jean Delvare <khali@linux-fr.org>
> > > Cc: Imre Deak <imre.deak@intel.com>
> > > Cc: Guenter Roeck <linux@roeck-us.net>
> >
> > Acked-by: Guenter Roeck <linux@roeck-us.net>
> >
> > Are you going to take the series, or do you want me to handle it ?
>
> You take tmp401 and I take lm63 and lm90?
>
Ok, makes sense.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-19 15:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-19 14:57 [lm-sensors] [PATCH] hwmon: (tmp401) Drop redundant safety on cache lifetime Jean Delvare
2013-05-19 15:05 ` Guenter Roeck
2013-05-19 15:17 ` Jean Delvare
2013-05-19 15:19 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.