]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] rtc-sa1100: don't assume CLOCK_TICK_RATE to be a constant
authorEric Miao <eric.miao@marvell.com>
Thu, 18 Dec 2008 03:10:32 +0000 (11:10 +0800)
committerEric Miao <eric.miao@marvell.com>
Mon, 29 Dec 2008 09:57:48 +0000 (17:57 +0800)
commit6769717d5d51596618f6b143008d8ace11ec8a69
tree5f4b4b76211132d79e844314725ba4b9e459bc3c
parent9f1442bbf9fd68d8e190c91ab294131dd5c289ee
[ARM] rtc-sa1100: don't assume CLOCK_TICK_RATE to be a constant

As Nicolas and Russell pointed out, CLOCK_TICK_RATE is no more
a constant on PXA when multiple processors and platforms are
selected, change TIMER_FREQ in rtc-sa1100.c into a variable.

Since the code to decide the clock tick rate is re-used from
timer.c, introduce a common get_clock_tick_rate() for this.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Acked-by: Nicolas Pitre <nico@marvell.com>
arch/arm/mach-pxa/generic.c
arch/arm/mach-pxa/include/mach/hardware.h
arch/arm/mach-pxa/include/mach/timex.h
arch/arm/mach-pxa/time.c
arch/arm/mach-sa1100/include/mach/hardware.h
drivers/rtc/rtc-sa1100.c