aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/Kconfig
diff options
context:
space:
mode:
authorYi Li <yi.li@analog.com>2009-12-28 05:21:49 -0500
committerMike Frysinger <vapier@gentoo.org>2010-03-09 00:30:48 -0500
commit0d152c27e336b5fd777da7dd3e814617e7305afd (patch)
tree2863b1b2f0fe0676a5928b197c8d1d289ab71777 /arch/blackfin/Kconfig
parent682f5dc4ed7cdef1f55e40ee505c4346dfa6fa91 (diff)
Blackfin: SMP: make core timers per-cpu clock events for HRT
SMP systems require per-cpu local clock event devices in order to enable HRT support. One a BF561, we can use local core timer for this purpose. Originally, there was one global core-timer clock event device set up for core A. To accomplish this feat, we need to split the gptimer0/core timer logic so that each is a standalone clock event. There is no requirement that we only have one clock event source anyways. Once we have this, we just define per-cpu clock event devices for each local core timer. Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/Kconfig')
-rw-r--r--arch/blackfin/Kconfig26
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig
index b483639c80b3..0bd26dbca09f 100644
--- a/arch/blackfin/Kconfig
+++ b/arch/blackfin/Kconfig
@@ -236,7 +236,7 @@ endchoice
236 236
237config SMP 237config SMP
238 depends on BF561 238 depends on BF561
239 select GENERIC_CLOCKEVENTS 239 select TICKSOURCE_CORETMR
240 bool "Symmetric multi-processing support" 240 bool "Symmetric multi-processing support"
241 ---help--- 241 ---help---
242 This enables support for systems with more than one CPU, 242 This enables support for systems with more than one CPU,
@@ -610,23 +610,23 @@ config GENERIC_CLOCKEVENTS
610 bool "Generic clock events" 610 bool "Generic clock events"
611 default y 611 default y
612 612
613choice 613menu "Clock event device"
614 prompt "Kernel Tick Source"
615 depends on GENERIC_CLOCKEVENTS 614 depends on GENERIC_CLOCKEVENTS
616 default TICKSOURCE_CORETMR
617
618config TICKSOURCE_GPTMR0 615config TICKSOURCE_GPTMR0
619 bool "Gptimer0 (SCLK domain)" 616 bool "GPTimer0"
617 depends on !SMP
620 select BFIN_GPTIMERS 618 select BFIN_GPTIMERS
621 619
622config TICKSOURCE_CORETMR 620config TICKSOURCE_CORETMR
623 bool "Core timer (CCLK domain)" 621 bool "Core timer"
624 622 default y
625endchoice 623endmenu
626 624
627config CYCLES_CLOCKSOURCE 625menu "Clock souce"
628 bool "Use 'CYCLES' as a clocksource"
629 depends on GENERIC_CLOCKEVENTS 626 depends on GENERIC_CLOCKEVENTS
627config CYCLES_CLOCKSOURCE
628 bool "CYCLES"
629 default y
630 depends on !BFIN_SCRATCH_REG_CYCLES 630 depends on !BFIN_SCRATCH_REG_CYCLES
631 depends on !SMP 631 depends on !SMP
632 help 632 help
@@ -637,10 +637,10 @@ config CYCLES_CLOCKSOURCE
637 writing the registers will most likely crash the kernel. 637 writing the registers will most likely crash the kernel.
638 638
639config GPTMR0_CLOCKSOURCE 639config GPTMR0_CLOCKSOURCE
640 bool "Use GPTimer0 as a clocksource" 640 bool "GPTimer0"
641 select BFIN_GPTIMERS 641 select BFIN_GPTIMERS
642 depends on GENERIC_CLOCKEVENTS
643 depends on !TICKSOURCE_GPTMR0 642 depends on !TICKSOURCE_GPTMR0
643endmenu
644 644
645config ARCH_USES_GETTIMEOFFSET 645config ARCH_USES_GETTIMEOFFSET
646 depends on !GENERIC_CLOCKEVENTS 646 depends on !GENERIC_CLOCKEVENTS