aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/Makefile
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2008-02-22 17:28:37 -0800
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2008-03-04 13:42:24 +0100
commit4d243f92e48a7913938f48fa9ebea5239168bb11 (patch)
tree8068f70eda76ff21839f9672771d3bd0ab9deb58 /drivers/clocksource/Makefile
parent2a341f5cf57dce9d89b41484a69e88adc6422f6c (diff)
downloadkernel_samsung_smdk4412-4d243f92e48a7913938f48fa9ebea5239168bb11.zip
kernel_samsung_smdk4412-4d243f92e48a7913938f48fa9ebea5239168bb11.tar.gz
kernel_samsung_smdk4412-4d243f92e48a7913938f48fa9ebea5239168bb11.tar.bz2
atmel_tc clocksource/clockevent code
Clocksource and clockevent device based on the Atmel TC blocks. The clockevent device handles both periodic and oneshot modes, so this enables NO_HZ and high res timers on some platforms that previously couldn't use those mechanisms. This works on both AVR32 and AT91 chips, given relevant patches for tclib support (always) and clockevents (or else this will only look like a higher precision clocksource). It's an updated and modularized version of an AT91-only patch that has circulated for some time now. Changes relative to the original patch: * Update to use new tclib API * Replace open-coded do-while loop using goto with a real do-while loop * Minor irq handler optimization: Load register base address from dev_id instead of a global variable. * Aggressively turn off clocks when the clockevent isn't being used * Include the clockevent code on AT91RM9200 as well. The rating is lower than the System Timer, so the clock will usually stay off. * Don't assume that the number of clocks is always equal to the number of irqs. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'drivers/clocksource/Makefile')
-rw-r--r--drivers/clocksource/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile
index a522254..1525882 100644
--- a/drivers/clocksource/Makefile
+++ b/drivers/clocksource/Makefile
@@ -1,3 +1,4 @@
+obj-$(CONFIG_ATMEL_TCB_CLKSRC) += tcb_clksrc.o
obj-$(CONFIG_X86_CYCLONE_TIMER) += cyclone.o
obj-$(CONFIG_X86_PM_TIMER) += acpi_pm.o
obj-$(CONFIG_SCx200HR_TIMER) += scx200_hrt.o