diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2016-05-04 12:50:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-05-05 02:42:48 -0400 |
commit | 3282e6b8f89eaeaf4915ee6cc57bcf06d1d6cead (patch) | |
tree | 16eee7223b1568be5a437d06ca7e7882249b2ba4 | |
parent | f3391a160b22f8e006f3fb8ef39aa01da749fbf0 (diff) |
x86/topology: Remove redundant ENABLE_TOPO_DEFINES
Commit c8e56d20f2d1 ("x86: Kill CONFIG_X86_HT") removed CONFIG_X86_HT
and defined ENABLE_TOPO_DEFINES always if CONFIG_SMP, which makes
ENABLE_TOPO_DEFINES redundant.
This patch removes the redundant ENABLE_TOPO_DEFINES and instead uses
CONFIG_SMP directly
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1462380659-5968-1-git-send-email-sudeep.holla@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/topology.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index 7f991bd5031b..c9a4ed73aef4 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h | |||
@@ -25,16 +25,6 @@ | |||
25 | #ifndef _ASM_X86_TOPOLOGY_H | 25 | #ifndef _ASM_X86_TOPOLOGY_H |
26 | #define _ASM_X86_TOPOLOGY_H | 26 | #define _ASM_X86_TOPOLOGY_H |
27 | 27 | ||
28 | #ifdef CONFIG_X86_32 | ||
29 | # ifdef CONFIG_SMP | ||
30 | # define ENABLE_TOPO_DEFINES | ||
31 | # endif | ||
32 | #else | ||
33 | # ifdef CONFIG_SMP | ||
34 | # define ENABLE_TOPO_DEFINES | ||
35 | # endif | ||
36 | #endif | ||
37 | |||
38 | /* | 28 | /* |
39 | * to preserve the visibility of NUMA_NO_NODE definition, | 29 | * to preserve the visibility of NUMA_NO_NODE definition, |
40 | * moved to there from here. May be used independent of | 30 | * moved to there from here. May be used independent of |
@@ -123,7 +113,7 @@ extern const struct cpumask *cpu_coregroup_mask(int cpu); | |||
123 | #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) | 113 | #define topology_physical_package_id(cpu) (cpu_data(cpu).phys_proc_id) |
124 | #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) | 114 | #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) |
125 | 115 | ||
126 | #ifdef ENABLE_TOPO_DEFINES | 116 | #ifdef CONFIG_SMP |
127 | #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) | 117 | #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) |
128 | #define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu)) | 118 | #define topology_sibling_cpumask(cpu) (per_cpu(cpu_sibling_map, cpu)) |
129 | 119 | ||