summaryrefslogtreecommitdiffstats
path: root/kernel/time.c
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2012-03-15 00:38:15 +0100
committerJohn Stultz <john.stultz@linaro.org>2012-03-16 02:17:54 +0100
commitf695cf94837de53864180400cbac42cfa370426f (patch)
tree9bb91a9b8c5a1291a083a37e790da00d477b18f8 /kernel/time.c
parenttime: x86: Fix race switching from vsyscall to non-vsyscall clock (diff)
downloadlinux-f695cf94837de53864180400cbac42cfa370426f.tar.xz
linux-f695cf94837de53864180400cbac42cfa370426f.zip
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>
Diffstat (limited to 'kernel/time.c')
0 files changed, 0 insertions, 0 deletions