]> git.baikalelectronics.ru Git - kernel.git/commit
time: Fix change_clocksource locking
authorJohn Stultz <john.stultz@linaro.org>
Wed, 14 Mar 2012 23:38:15 +0000 (16:38 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 16 Mar 2012 01:17:54 +0000 (18:17 -0700)
commit377d215da2e5e1803d7ee49e5d4baa39ecba37ac
tree9bb91a9b8c5a1291a083a37e790da00d477b18f8
parentf850258fe7b73133be5aff7d5c15e0e0214b1791
time: Fix change_clocksource locking

change_clocksource() fails to grab locks or call timekeeping_update(),
which leaves a race window for time inconsistencies.

This adds proper locking and a call to timekeeping_update() to fix this.

CC: Andy Lutomirski <luto@amacapital.net>
CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/timekeeping.c