From: Magnus Damm Date: Tue, 21 Apr 2009 19:24:02 +0000 (-0700) Subject: clocksource: add enable() and disable() callbacks X-Git-Tag: v2.6.30-rc3~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4614e6adafa2c5e6c3a9c245af2807fa7bc5117a;p=pandora-kernel.git clocksource: add enable() and disable() callbacks Add enable() and disable() callbacks for clocksources. This allows us to put unused clocksources in power save mode. The functions clocksource_enable() and clocksource_disable() wrap the callbacks and are inserted in the timekeeping code to enable before use and disable after switching to a new clocksource. Signed-off-by: Magnus Damm Acked-by: John Stultz Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed