aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2013-11-14 17:32:07 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-14 19:32:22 -0500
commit0a06ff068f1255bcd7965ab07bc0f4adc3eb639a (patch)
tree419618fc4573c9d0ff17f383e84fc41071d50004
parentfc21c0cff2f425891b28ff6fb6b03b325c977428 (diff)
kernel: remove CONFIG_USE_GENERIC_SMP_HELPERS
We've switched over every architecture that supports SMP to it, so remove the new useless config variable. Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Jan Kara <jack@suse.cz> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--arch/Kconfig3
-rw-r--r--arch/alpha/Kconfig1
-rw-r--r--arch/arc/Kconfig1
-rw-r--r--arch/arm/Kconfig1
-rw-r--r--arch/arm64/Kconfig1
-rw-r--r--arch/blackfin/Kconfig1
-rw-r--r--arch/hexagon/Kconfig1
-rw-r--r--arch/ia64/Kconfig1
-rw-r--r--arch/m32r/Kconfig1
-rw-r--r--arch/metag/Kconfig1
-rw-r--r--arch/mips/Kconfig1
-rw-r--r--arch/mn10300/Kconfig1
-rw-r--r--arch/parisc/Kconfig1
-rw-r--r--arch/powerpc/Kconfig1
-rw-r--r--arch/s390/Kconfig1
-rw-r--r--arch/sh/Kconfig1
-rw-r--r--arch/sparc/Kconfig1
-rw-r--r--arch/tile/Kconfig1
-rw-r--r--arch/x86/Kconfig1
-rw-r--r--block/blk-mq.c4
-rw-r--r--block/blk-softirq.c4
-rw-r--r--block/blk-sysfs.c2
-rw-r--r--include/linux/smp.h4
-rw-r--r--kernel/Kconfig.hz2
-rw-r--r--kernel/smp.c2
25 files changed, 6 insertions, 33 deletions
diff --git a/arch/Kconfig b/arch/Kconfig
index ded747c7b74c..f1cf895c040f 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -207,9 +207,6 @@ config HAVE_DMA_ATTRS
207config HAVE_DMA_CONTIGUOUS 207config HAVE_DMA_CONTIGUOUS
208 bool 208 bool
209 209
210config USE_GENERIC_SMP_HELPERS
211 bool
212
213config GENERIC_SMP_IDLE_THREAD 210config GENERIC_SMP_IDLE_THREAD
214 bool 211 bool
215 212
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index 35a300d4a9fb..8d2a4833acda 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -522,7 +522,6 @@ config ARCH_MAY_HAVE_PC_FDC
522config SMP 522config SMP
523 bool "Symmetric multi-processing support" 523 bool "Symmetric multi-processing support"
524 depends on ALPHA_SABLE || ALPHA_LYNX || ALPHA_RAWHIDE || ALPHA_DP264 || ALPHA_WILDFIRE || ALPHA_TITAN || ALPHA_GENERIC || ALPHA_SHARK || ALPHA_MARVEL 524 depends on ALPHA_SABLE || ALPHA_LYNX || ALPHA_RAWHIDE || ALPHA_DP264 || ALPHA_WILDFIRE || ALPHA_TITAN || ALPHA_GENERIC || ALPHA_SHARK || ALPHA_MARVEL
525 select USE_GENERIC_SMP_HELPERS
526 ---help--- 525 ---help---
527 This enables support for systems with more than one CPU. If you have 526 This enables support for systems with more than one CPU. If you have
528 a system with only one CPU, like most personal computers, say N. If 527 a system with only one CPU, like most personal computers, say N. If
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
index 5ede5460c806..2ee0c9bfd032 100644
--- a/arch/arc/Kconfig
+++ b/arch/arc/Kconfig
@@ -125,7 +125,6 @@ config ARC_PLAT_NEEDS_CPU_TO_DMA
125config SMP 125config SMP
126 bool "Symmetric Multi-Processing (Incomplete)" 126 bool "Symmetric Multi-Processing (Incomplete)"
127 default n 127 default n
128 select USE_GENERIC_SMP_HELPERS
129 help 128 help
130 This enables support for systems with more than one CPU. If you have 129 This enables support for systems with more than one CPU. If you have
131 a system with only one CPU, like most personal computers, say N. If 130 a system with only one CPU, like most personal computers, say N. If
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 603d661b445d..00c1ff45a158 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1432,7 +1432,6 @@ config SMP
1432 depends on GENERIC_CLOCKEVENTS 1432 depends on GENERIC_CLOCKEVENTS
1433 depends on HAVE_SMP 1433 depends on HAVE_SMP
1434 depends on MMU || ARM_MPU 1434 depends on MMU || ARM_MPU
1435 select USE_GENERIC_SMP_HELPERS
1436 help 1435 help
1437 This enables support for systems with more than one CPU. If you have 1436 This enables support for systems with more than one CPU. If you have
1438 a system with only one CPU, like most personal computers, say N. If 1437 a system with only one CPU, like most personal computers, say N. If
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index bb0bf1bfc05d..9714fe0403b7 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -143,7 +143,6 @@ config CPU_BIG_ENDIAN
143 143
144config SMP 144config SMP
145 bool "Symmetric Multi-Processing" 145 bool "Symmetric Multi-Processing"
146 select USE_GENERIC_SMP_HELPERS
147 help 146 help
148 This enables support for systems with more than one CPU. If 147 This enables support for systems with more than one CPU. If
149 you say N here, the kernel will run on single and 148 you say N here, the kernel will run on single and
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig
index e887b57c3176..9ceccef9c649 100644
--- a/arch/blackfin/Kconfig
+++ b/arch/blackfin/Kconfig
@@ -34,7 +34,6 @@ config BLACKFIN
34 select ARCH_WANT_IPC_PARSE_VERSION 34 select ARCH_WANT_IPC_PARSE_VERSION
35 select GENERIC_ATOMIC64 35 select GENERIC_ATOMIC64
36 select GENERIC_IRQ_PROBE 36 select GENERIC_IRQ_PROBE
37 select USE_GENERIC_SMP_HELPERS if SMP
38 select HAVE_NMI_WATCHDOG if NMI_WATCHDOG 37 select HAVE_NMI_WATCHDOG if NMI_WATCHDOG
39 select GENERIC_SMP_IDLE_THREAD 38 select GENERIC_SMP_IDLE_THREAD
40 select ARCH_USES_GETTIMEOFFSET if !GENERIC_CLOCKEVENTS 39 select ARCH_USES_GETTIMEOFFSET if !GENERIC_CLOCKEVENTS
diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig
index 99041b07e610..09df2608f40a 100644
--- a/arch/hexagon/Kconfig
+++ b/arch/hexagon/Kconfig
@@ -4,7 +4,6 @@ comment "Linux Kernel Configuration for Hexagon"
4config HEXAGON 4config HEXAGON
5 def_bool y 5 def_bool y
6 select HAVE_OPROFILE 6 select HAVE_OPROFILE
7 select USE_GENERIC_SMP_HELPERS if SMP
8 # Other pending projects/to-do items. 7 # Other pending projects/to-do items.
9 # select HAVE_REGS_AND_STACK_ACCESS_API 8 # select HAVE_REGS_AND_STACK_ACCESS_API
10 # select HAVE_HW_BREAKPOINT if PERF_EVENTS 9 # select HAVE_HW_BREAKPOINT if PERF_EVENTS
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
index 7740ab10a171..dfe85e92ca2e 100644
--- a/arch/ia64/Kconfig
+++ b/arch/ia64/Kconfig
@@ -343,7 +343,6 @@ config FORCE_MAX_ZONEORDER
343 343
344config SMP 344config SMP
345 bool "Symmetric multi-processing support" 345 bool "Symmetric multi-processing support"
346 select USE_GENERIC_SMP_HELPERS
347 help 346 help
348 This enables support for systems with more than one CPU. If you have 347 This enables support for systems with more than one CPU. If you have
349 a system with only one CPU, say N. If you have a system with more 348 a system with only one CPU, say N. If you have a system with more
diff --git a/arch/m32r/Kconfig b/arch/m32r/Kconfig
index 75661fbf4529..09ef94a8a7c3 100644
--- a/arch/m32r/Kconfig
+++ b/arch/m32r/Kconfig
@@ -275,7 +275,6 @@ source "kernel/Kconfig.preempt"
275 275
276config SMP 276config SMP
277 bool "Symmetric multi-processing support" 277 bool "Symmetric multi-processing support"
278 select USE_GENERIC_SMP_HELPERS
279 ---help--- 278 ---help---
280 This enables support for systems with more than one CPU. If you have 279 This enables support for systems with more than one CPU. If you have
281 a system with only one CPU, like most personal computers, say N. If 280 a system with only one CPU, like most personal computers, say N. If
diff --git a/arch/metag/Kconfig b/arch/metag/Kconfig
index 36368eb07e13..e56abd2c1b4f 100644
--- a/arch/metag/Kconfig
+++ b/arch/metag/Kconfig
@@ -111,7 +111,6 @@ config METAG_META21
111config SMP 111config SMP
112 bool "Symmetric multi-processing support" 112 bool "Symmetric multi-processing support"
113 depends on METAG_META21 && METAG_META21_MMU 113 depends on METAG_META21 && METAG_META21_MMU
114 select USE_GENERIC_SMP_HELPERS
115 help 114 help
116 This enables support for systems with more than one thread running 115 This enables support for systems with more than one thread running
117 Linux. If you have a system with only one thread running Linux, 116 Linux. If you have a system with only one thread running Linux,
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 17cc7ff8458c..867d7db11581 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2125,7 +2125,6 @@ source "mm/Kconfig"
2125config SMP 2125config SMP
2126 bool "Multi-Processing support" 2126 bool "Multi-Processing support"
2127 depends on SYS_SUPPORTS_SMP 2127 depends on SYS_SUPPORTS_SMP
2128 select USE_GENERIC_SMP_HELPERS
2129 help 2128 help
2130 This enables support for systems with more than one CPU. If you have 2129 This enables support for systems with more than one CPU. If you have
2131 a system with only one CPU, like most personal computers, say N. If 2130 a system with only one CPU, like most personal computers, say N. If
diff --git a/arch/mn10300/Kconfig b/arch/mn10300/Kconfig
index 6aaa1607001a..8bde9237d13b 100644
--- a/arch/mn10300/Kconfig
+++ b/arch/mn10300/Kconfig
@@ -181,7 +181,6 @@ endmenu
181config SMP 181config SMP
182 bool "Symmetric multi-processing support" 182 bool "Symmetric multi-processing support"
183 default y 183 default y
184 select USE_GENERIC_SMP_HELPERS
185 depends on MN10300_PROC_MN2WS0038 || MN10300_PROC_MN2WS0050 184 depends on MN10300_PROC_MN2WS0038 || MN10300_PROC_MN2WS0050
186 ---help--- 185 ---help---
187 This enables support for systems with more than one CPU. If you have 186 This enables support for systems with more than one CPU. If you have
diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
index 7dcde539d61e..c03567a9a915 100644
--- a/arch/parisc/Kconfig
+++ b/arch/parisc/Kconfig
@@ -226,7 +226,6 @@ endchoice
226 226
227config SMP 227config SMP
228 bool "Symmetric multi-processing support" 228 bool "Symmetric multi-processing support"
229 select USE_GENERIC_SMP_HELPERS
230 ---help--- 229 ---help---
231 This enables support for systems with more than one CPU. If you have 230 This enables support for systems with more than one CPU. If you have
232 a system with only one CPU, like most personal computers, say N. If 231 a system with only one CPU, like most personal computers, say N. If
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 2f898d63eb96..4740b0a15fa8 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -106,7 +106,6 @@ config PPC
106 select HAVE_MEMBLOCK_NODE_MAP 106 select HAVE_MEMBLOCK_NODE_MAP
107 select HAVE_DMA_ATTRS 107 select HAVE_DMA_ATTRS
108 select HAVE_DMA_API_DEBUG 108 select HAVE_DMA_API_DEBUG
109 select USE_GENERIC_SMP_HELPERS if SMP
110 select HAVE_OPROFILE 109 select HAVE_OPROFILE
111 select HAVE_DEBUG_KMEMLEAK 110 select HAVE_DEBUG_KMEMLEAK
112 select GENERIC_ATOMIC64 if PPC32 111 select GENERIC_ATOMIC64 if PPC32
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index f75d7e517927..314fced4fc14 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -141,7 +141,6 @@ config S390
141 select OLD_SIGACTION 141 select OLD_SIGACTION
142 select OLD_SIGSUSPEND3 142 select OLD_SIGSUSPEND3
143 select SYSCTL_EXCEPTION_TRACE 143 select SYSCTL_EXCEPTION_TRACE
144 select USE_GENERIC_SMP_HELPERS if SMP
145 select VIRT_CPU_ACCOUNTING 144 select VIRT_CPU_ACCOUNTING
146 select VIRT_TO_BUS 145 select VIRT_TO_BUS
147 146
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 224f4bc9925e..e78561bc30ef 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -711,7 +711,6 @@ config CC_STACKPROTECTOR
711config SMP 711config SMP
712 bool "Symmetric multi-processing support" 712 bool "Symmetric multi-processing support"
713 depends on SYS_SUPPORTS_SMP 713 depends on SYS_SUPPORTS_SMP
714 select USE_GENERIC_SMP_HELPERS
715 ---help--- 714 ---help---
716 This enables support for systems with more than one CPU. If you have 715 This enables support for systems with more than one CPU. If you have
717 a system with only one CPU, like most personal computers, say N. If 716 a system with only one CPU, like most personal computers, say N. If
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 78c4fdb91bc5..8591b201d9cc 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -28,7 +28,6 @@ config SPARC
28 select HAVE_ARCH_JUMP_LABEL 28 select HAVE_ARCH_JUMP_LABEL
29 select GENERIC_IRQ_SHOW 29 select GENERIC_IRQ_SHOW
30 select ARCH_WANT_IPC_PARSE_VERSION 30 select ARCH_WANT_IPC_PARSE_VERSION
31 select USE_GENERIC_SMP_HELPERS if SMP
32 select GENERIC_PCI_IOMAP 31 select GENERIC_PCI_IOMAP
33 select HAVE_NMI_WATCHDOG if SPARC64 32 select HAVE_NMI_WATCHDOG if SPARC64
34 select HAVE_BPF_JIT 33 select HAVE_BPF_JIT
diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig
index d45a2c48f185..b3692ce78f90 100644
--- a/arch/tile/Kconfig
+++ b/arch/tile/Kconfig
@@ -8,7 +8,6 @@ config TILE
8 select HAVE_KVM if !TILEGX 8 select HAVE_KVM if !TILEGX
9 select GENERIC_FIND_FIRST_BIT 9 select GENERIC_FIND_FIRST_BIT
10 select SYSCTL_EXCEPTION_TRACE 10 select SYSCTL_EXCEPTION_TRACE
11 select USE_GENERIC_SMP_HELPERS
12 select CC_OPTIMIZE_FOR_SIZE 11 select CC_OPTIMIZE_FOR_SIZE
13 select HAVE_DEBUG_KMEMLEAK 12 select HAVE_DEBUG_KMEMLEAK
14 select GENERIC_IRQ_PROBE 13 select GENERIC_IRQ_PROBE
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index af5513e5798a..83f521aa103f 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -90,7 +90,6 @@ config X86
90 select GENERIC_IRQ_SHOW 90 select GENERIC_IRQ_SHOW
91 select GENERIC_CLOCKEVENTS_MIN_ADJUST 91 select GENERIC_CLOCKEVENTS_MIN_ADJUST
92 select IRQ_FORCED_THREADING 92 select IRQ_FORCED_THREADING
93 select USE_GENERIC_SMP_HELPERS if SMP
94 select HAVE_BPF_JIT if X86_64 93 select HAVE_BPF_JIT if X86_64
95 select HAVE_ARCH_TRANSPARENT_HUGEPAGE 94 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
96 select CLKEVT_I8253 95 select CLKEVT_I8253
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 88d4e864d4c0..c661896e2465 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -319,7 +319,7 @@ void __blk_mq_end_io(struct request *rq, int error)
319 blk_mq_complete_request(rq, error); 319 blk_mq_complete_request(rq, error);
320} 320}
321 321
322#if defined(CONFIG_SMP) && defined(CONFIG_USE_GENERIC_SMP_HELPERS) 322#if defined(CONFIG_SMP)
323 323
324/* 324/*
325 * Called with interrupts disabled. 325 * Called with interrupts disabled.
@@ -361,7 +361,7 @@ static int ipi_remote_cpu(struct blk_mq_ctx *ctx, const int cpu,
361 361
362 return true; 362 return true;
363} 363}
364#else /* CONFIG_SMP && CONFIG_USE_GENERIC_SMP_HELPERS */ 364#else /* CONFIG_SMP */
365static int ipi_remote_cpu(struct blk_mq_ctx *ctx, const int cpu, 365static int ipi_remote_cpu(struct blk_mq_ctx *ctx, const int cpu,
366 struct request *rq, const int error) 366 struct request *rq, const int error)
367{ 367{
diff --git a/block/blk-softirq.c b/block/blk-softirq.c
index ce4b8bfd3d27..57790c1a97eb 100644
--- a/block/blk-softirq.c
+++ b/block/blk-softirq.c
@@ -36,7 +36,7 @@ static void blk_done_softirq(struct softirq_action *h)
36 } 36 }
37} 37}
38 38
39#if defined(CONFIG_SMP) && defined(CONFIG_USE_GENERIC_SMP_HELPERS) 39#ifdef CONFIG_SMP
40static void trigger_softirq(void *data) 40static void trigger_softirq(void *data)
41{ 41{
42 struct request *rq = data; 42 struct request *rq = data;
@@ -71,7 +71,7 @@ static int raise_blk_irq(int cpu, struct request *rq)
71 71
72 return 1; 72 return 1;
73} 73}
74#else /* CONFIG_SMP && CONFIG_USE_GENERIC_SMP_HELPERS */ 74#else /* CONFIG_SMP */
75static int raise_blk_irq(int cpu, struct request *rq) 75static int raise_blk_irq(int cpu, struct request *rq)
76{ 76{
77 return 1; 77 return 1;
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 4f8c4d90ec73..97779522472f 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -288,7 +288,7 @@ static ssize_t
288queue_rq_affinity_store(struct request_queue *q, const char *page, size_t count) 288queue_rq_affinity_store(struct request_queue *q, const char *page, size_t count)
289{ 289{
290 ssize_t ret = -EINVAL; 290 ssize_t ret = -EINVAL;
291#if defined(CONFIG_USE_GENERIC_SMP_HELPERS) 291#ifdef CONFIG_SMP
292 unsigned long val; 292 unsigned long val;
293 293
294 ret = queue_var_store(&val, page, count); 294 ret = queue_var_store(&val, page, count);
diff --git a/include/linux/smp.h b/include/linux/smp.h
index 731f5237d5f4..78851513030d 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -106,14 +106,10 @@ void kick_all_cpus_sync(void);
106/* 106/*
107 * Generic and arch helpers 107 * Generic and arch helpers
108 */ 108 */
109#ifdef CONFIG_USE_GENERIC_SMP_HELPERS
110void __init call_function_init(void); 109void __init call_function_init(void);
111void generic_smp_call_function_single_interrupt(void); 110void generic_smp_call_function_single_interrupt(void);
112#define generic_smp_call_function_interrupt \ 111#define generic_smp_call_function_interrupt \
113 generic_smp_call_function_single_interrupt 112 generic_smp_call_function_single_interrupt
114#else
115static inline void call_function_init(void) { }
116#endif
117 113
118/* 114/*
119 * Mark the boot cpu "online" so that it can call console drivers in 115 * Mark the boot cpu "online" so that it can call console drivers in
diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
index 94fabd534b03..2a202a846757 100644
--- a/kernel/Kconfig.hz
+++ b/kernel/Kconfig.hz
@@ -55,4 +55,4 @@ config HZ
55 default 1000 if HZ_1000 55 default 1000 if HZ_1000
56 56
57config SCHED_HRTICK 57config SCHED_HRTICK
58 def_bool HIGH_RES_TIMERS && (!SMP || USE_GENERIC_SMP_HELPERS) 58 def_bool HIGH_RES_TIMERS
diff --git a/kernel/smp.c b/kernel/smp.c
index 46116100f0ee..1c194e20e943 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -15,7 +15,6 @@
15 15
16#include "smpboot.h" 16#include "smpboot.h"
17 17
18#ifdef CONFIG_USE_GENERIC_SMP_HELPERS
19enum { 18enum {
20 CSD_FLAG_LOCK = 0x01, 19 CSD_FLAG_LOCK = 0x01,
21 CSD_FLAG_WAIT = 0x02, 20 CSD_FLAG_WAIT = 0x02,
@@ -464,7 +463,6 @@ int smp_call_function(smp_call_func_t func, void *info, int wait)
464 return 0; 463 return 0;
465} 464}
466EXPORT_SYMBOL(smp_call_function); 465EXPORT_SYMBOL(smp_call_function);
467#endif /* USE_GENERIC_SMP_HELPERS */
468 466
469/* Setup configured maximum number of CPUs to activate */ 467/* Setup configured maximum number of CPUs to activate */
470unsigned int setup_max_cpus = NR_CPUS; 468unsigned int setup_max_cpus = NR_CPUS;