timekeeping: Update clocksource with stop_machine
authorMartin Schwidefsky <[email protected]>
Fri, 14 Aug 2009 13:47:30 +0000 (15:47 +0200)
committerThomas Gleixner <[email protected]>
Sat, 15 Aug 2009 08:55:46 +0000 (10:55 +0200)
commit75c5158f70c065b9704b924503d96e8297838f79
tree74b02ba1f13aaf8292bd472a8a197ac900ff20e7
parent2ba2a3054fdffc8e6452f4ee120760322a6fbd43
timekeeping: Update clocksource with stop_machine

update_wall_time calls change_clocksource HZ times per second to check
if a new clock source is available. In close to 100% of all calls
there is no new clock. Replace the tick based check by an update done
with stop_machine.

Signed-off-by: Martin Schwidefsky <[email protected]>
Cc: Ingo Molnar <[email protected]>
Acked-by: John Stultz <[email protected]>
Cc: Daniel Walker <[email protected]>
LKML-Reference: <20090814134810.711836357@de.ibm.com>
Signed-off-by: Thomas Gleixner <[email protected]>
include/linux/clocksource.h
kernel/time/clocksource.c
kernel/time/timekeeping.c