aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/setup.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-05-29 13:28:44 -0400
committerWill Deacon <will.deacon@arm.com>2015-07-27 06:08:40 -0400
commit4b3dc9679cf779339d9049800803dfc3c83433d1 (patch)
tree8c04c26a614240f3142b7afafc071719fc3ea0f5 /arch/arm64/kernel/setup.c
parent52da443ec4d0a807b720527eb474f9c2878cd671 (diff)
arm64: force CONFIG_SMP=y and remove redundant #ifdefs
Nobody seems to be producing !SMP systems anymore, so this is just becoming a source of kernel bugs, particularly if people want to use coherent DMA with non-shared pages. This patch forces CONFIG_SMP=y for arm64, removing a modest amount of code in the process. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/setup.c')
-rw-r--r--arch/arm64/kernel/setup.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index f3067d4d4e35..cf609cf3fcb5 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -131,7 +131,6 @@ bool arch_match_cpu_phys_id(int cpu, u64 phys_id)
131} 131}
132 132
133struct mpidr_hash mpidr_hash; 133struct mpidr_hash mpidr_hash;
134#ifdef CONFIG_SMP
135/** 134/**
136 * smp_build_mpidr_hash - Pre-compute shifts required at each affinity 135 * smp_build_mpidr_hash - Pre-compute shifts required at each affinity
137 * level in order to build a linear index from an 136 * level in order to build a linear index from an
@@ -197,7 +196,6 @@ static void __init smp_build_mpidr_hash(void)
197 pr_warn("Large number of MPIDR hash buckets detected\n"); 196 pr_warn("Large number of MPIDR hash buckets detected\n");
198 __flush_dcache_area(&mpidr_hash, sizeof(struct mpidr_hash)); 197 __flush_dcache_area(&mpidr_hash, sizeof(struct mpidr_hash));
199} 198}
200#endif
201 199
202static void __init hyp_mode_check(void) 200static void __init hyp_mode_check(void)
203{ 201{
@@ -405,10 +403,8 @@ void __init setup_arch(char **cmdline_p)
405 xen_early_init(); 403 xen_early_init();
406 404
407 cpu_read_bootcpu_ops(); 405 cpu_read_bootcpu_ops();
408#ifdef CONFIG_SMP
409 smp_init_cpus(); 406 smp_init_cpus();
410 smp_build_mpidr_hash(); 407 smp_build_mpidr_hash();
411#endif
412 408
413#ifdef CONFIG_VT 409#ifdef CONFIG_VT
414#if defined(CONFIG_VGA_CONSOLE) 410#if defined(CONFIG_VGA_CONSOLE)
@@ -508,9 +504,7 @@ static int c_show(struct seq_file *m, void *v)
508 * online processors, looking for lines beginning with 504 * online processors, looking for lines beginning with
509 * "processor". Give glibc what it expects. 505 * "processor". Give glibc what it expects.
510 */ 506 */
511#ifdef CONFIG_SMP
512 seq_printf(m, "processor\t: %d\n", i); 507 seq_printf(m, "processor\t: %d\n", i);
513#endif
514 508
515 /* 509 /*
516 * Dump out the common processor features in a single line. 510 * Dump out the common processor features in a single line.