clocksource: Add __clocksource_updatefreq_hz/khz methods
authorJohn Stultz <johnstul@us.ibm.com>
Wed, 14 Jul 2010 00:56:28 +0000 (17:56 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 27 Jul 2010 10:40:55 +0000 (12:40 +0200)
commit852db46d55e85b475a72e665ca08d3317769ceef
tree3802273b1135f0f650868fe9e048d7c0594195fe
parentf12a15be63d1de9a35971f35f06b73088fa25c3a
clocksource: Add __clocksource_updatefreq_hz/khz methods

To properly handle clocksources that change frequencies
at the clocksource->enable() point, this patch adds
a method that will update the clocksource's mult/shift and
max_idle_ns values.

Signed-off-by: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <1279068988-21864-12-git-send-email-johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/clocksource.h
kernel/time/clocksource.c