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: http://review.tizen.org/git/?a=commitdiff_plain;h=298a5df45d497e66064fda22ef0abf13766d3333;p=platform%2Fkernel%2Flinux-3.10.git 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 cd91237..de6a2d6 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); }