diff options
author | Graf Yang <graf.yang@analog.com> | 2009-01-07 10:14:39 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:39 -0500 |
commit | 46fa5eecec58934902ea4a65d9c7b7a486ac6f6b (patch) | |
tree | b7373553151456c620d9747785de322b30d11548 /arch/blackfin/Kconfig | |
parent | 8f65873e47784a390949f0d61e5692dbf2a8253e (diff) |
Blackfin arch: SMP supporting patchset: some other misc code
Blackfin dual core BF561 processor can support SMP like features.
https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:smp-like
In this patch, we provide SMP extend to some other misc code
Singed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/Kconfig')
-rw-r--r-- | arch/blackfin/Kconfig | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index 004c06ce3198..3a468436258d 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig | |||
@@ -200,6 +200,32 @@ config BF561 | |||
200 | 200 | ||
201 | endchoice | 201 | endchoice |
202 | 202 | ||
203 | config SMP | ||
204 | depends on BF561 | ||
205 | bool "Symmetric multi-processing support" | ||
206 | ---help--- | ||
207 | This enables support for systems with more than one CPU, | ||
208 | like the dual core BF561. If you have a system with only one | ||
209 | CPU, say N. If you have a system with more than one CPU, say Y. | ||
210 | |||
211 | If you don't know what to do here, say N. | ||
212 | |||
213 | config NR_CPUS | ||
214 | int | ||
215 | depends on SMP | ||
216 | default 2 if BF561 | ||
217 | |||
218 | config IRQ_PER_CPU | ||
219 | bool | ||
220 | depends on SMP | ||
221 | default y | ||
222 | |||
223 | config TICK_SOURCE_SYSTMR0 | ||
224 | bool | ||
225 | select BFIN_GPTIMERS | ||
226 | depends on SMP | ||
227 | default y | ||
228 | |||
203 | config BF_REV_MIN | 229 | config BF_REV_MIN |
204 | int | 230 | int |
205 | default 0 if (BF51x || BF52x || BF54x) | 231 | default 0 if (BF51x || BF52x || BF54x) |
@@ -502,6 +528,7 @@ source kernel/Kconfig.hz | |||
502 | 528 | ||
503 | config GENERIC_TIME | 529 | config GENERIC_TIME |
504 | bool "Generic time" | 530 | bool "Generic time" |
531 | depends on !SMP | ||
505 | default y | 532 | default y |
506 | 533 | ||
507 | config GENERIC_CLOCKEVENTS | 534 | config GENERIC_CLOCKEVENTS |
@@ -576,6 +603,7 @@ endmenu | |||
576 | 603 | ||
577 | 604 | ||
578 | menu "Blackfin Kernel Optimizations" | 605 | menu "Blackfin Kernel Optimizations" |
606 | depends on !SMP | ||
579 | 607 | ||
580 | comment "Memory Optimizations" | 608 | comment "Memory Optimizations" |
581 | 609 | ||
@@ -738,7 +766,6 @@ config BFIN_INS_LOWOVERHEAD | |||
738 | 766 | ||
739 | endmenu | 767 | endmenu |
740 | 768 | ||
741 | |||
742 | choice | 769 | choice |
743 | prompt "Kernel executes from" | 770 | prompt "Kernel executes from" |
744 | help | 771 | help |
@@ -804,9 +831,11 @@ config BFIN_ICACHE_LOCK | |||
804 | choice | 831 | choice |
805 | prompt "Policy" | 832 | prompt "Policy" |
806 | depends on BFIN_DCACHE | 833 | depends on BFIN_DCACHE |
807 | default BFIN_WB | 834 | default BFIN_WB if !SMP |
835 | default BFIN_WT if SMP | ||
808 | config BFIN_WB | 836 | config BFIN_WB |
809 | bool "Write back" | 837 | bool "Write back" |
838 | depends on !SMP | ||
810 | help | 839 | help |
811 | Write Back Policy: | 840 | Write Back Policy: |
812 | Cached data will be written back to SDRAM only when needed. | 841 | Cached data will be written back to SDRAM only when needed. |