]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ff4bddb6c7c548fd5608fd5a1d0feec0522f647
tree3802273b1135f0f650868fe9e048d7c0594195fe
parent3800fe87fa259f6c6f6314afb40ee6680c86d30f
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