Fix "no_sync_cmos_clock" logic inversion in kernel/time/ntp.c
authorTony Breeds <tony@bakeyournoodle.com>
Tue, 11 Sep 2007 22:24:03 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 12 Sep 2007 00:21:27 +0000 (17:21 -0700)
Seems to me that this timer will only get started on platforms that say
they don't want it?

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Gabriel Paubert <paubert@iram.es>
Cc: Zachary Amsden <zach@vmware.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/time/ntp.c

index cd91237dbfe3c160867e60a12f4251b2bf4679fa..de6a2d6b3ebb69ad65f1491e9f44a846e1b86f44 100644 (file)
@@ -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);
 }