From ac7ace0484c8f7eec39e2577ac03050bb350ab58 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 30 Jan 2000 01:21:49 +0000 Subject: [PATCH] (mds) changed refresh time from 1.5 seconds to 5 minutes. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@717 7894878c-1315-0410-8ee3-d5d059ff63e0 --- doc/chips/eeprom | 3 +++ kernel/chips/eeprom.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/chips/eeprom b/doc/chips/eeprom index d4eaf0d9..75e12f35 100644 --- a/doc/chips/eeprom +++ b/doc/chips/eeprom @@ -68,6 +68,9 @@ example, have serial EEPROMs in them connected to the SMBus which will be found by the module. Take care to ignore the output of decode_dimms.pl for these EEPROMs. +The driver caches the data from the monitor and only rereads it +from the eeprom if the cache is more than 5 minutes old. + DECODE_DIMMS.PL --------------- diff --git a/kernel/chips/eeprom.c b/kernel/chips/eeprom.c index d2939d79..d5dbb402 100644 --- a/kernel/chips/eeprom.c +++ b/kernel/chips/eeprom.c @@ -319,7 +319,7 @@ void eeprom_update_client(struct i2c_client *client) down(&data->update_lock); - if ((jiffies - data->last_updated > HZ + HZ / 2) || + if ((jiffies - data->last_updated > 300 * HZ) | (jiffies < data->last_updated) || !data->valid) { #ifdef DEBUG