diff options
Diffstat (limited to 'arch/i386/kernel/time.c')
-rw-r--r-- | arch/i386/kernel/time.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/i386/kernel/time.c b/arch/i386/kernel/time.c index c505b16c0990..9603ccaba997 100644 --- a/arch/i386/kernel/time.c +++ b/arch/i386/kernel/time.c | |||
@@ -232,6 +232,7 @@ EXPORT_SYMBOL(get_cmos_time); | |||
232 | static void sync_cmos_clock(unsigned long dummy); | 232 | static void sync_cmos_clock(unsigned long dummy); |
233 | 233 | ||
234 | static DEFINE_TIMER(sync_cmos_timer, sync_cmos_clock, 0, 0); | 234 | static DEFINE_TIMER(sync_cmos_timer, sync_cmos_clock, 0, 0); |
235 | int no_sync_cmos_clock; | ||
235 | 236 | ||
236 | static void sync_cmos_clock(unsigned long dummy) | 237 | static void sync_cmos_clock(unsigned long dummy) |
237 | { | 238 | { |
@@ -275,7 +276,8 @@ static void sync_cmos_clock(unsigned long dummy) | |||
275 | 276 | ||
276 | void notify_arch_cmos_timer(void) | 277 | void notify_arch_cmos_timer(void) |
277 | { | 278 | { |
278 | mod_timer(&sync_cmos_timer, jiffies + 1); | 279 | if (!no_sync_cmos_clock) |
280 | mod_timer(&sync_cmos_timer, jiffies + 1); | ||
279 | } | 281 | } |
280 | 282 | ||
281 | static long clock_cmos_diff; | 283 | static long clock_cmos_diff; |