From: Tony Breeds Date: Tue, 11 Sep 2007 22:24:03 +0000 (-0700) Subject: Fix "no_sync_cmos_clock" logic inversion in kernel/time/ntp.c X-Git-Tag: v2.6.23-rc7~72 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=298a5df45d497e66064fda22ef0abf13766d3333;p=linux-2.6 Fix "no_sync_cmos_clock" logic inversion in kernel/time/ntp.c Seems to me that this timer will only get started on platforms that say they don't want it? Signed-off-by: Tony Breeds Cc: Paul Mackerras Cc: Gabriel Paubert Cc: Zachary Amsden Acked-by: Thomas Gleixner Cc: John Stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c index cd91237dbf..de6a2d6b3e 100644 --- a/kernel/time/ntp.c +++ b/kernel/time/ntp.c @@ -226,7 +226,7 @@ static void sync_cmos_clock(unsigned long dummy) static void notify_cmos_timer(void) { - if (no_sync_cmos_clock) + if (!no_sync_cmos_clock) mod_timer(&sync_cmos_timer, jiffies + 1); }