Skip to content

Commit

Permalink
Fix "no_sync_cmos_clock" logic inversion in kernel/time/ntp.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tony Breeds authored and Linus Torvalds committed Sep 12, 2007
1 parent 0e2f6db commit 298a5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/time/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 298a5df

Please sign in to comment.