diff options
-rw-r--r-- | arch/i386/kernel/cpu/mcheck/therm_throt.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/cpuid.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/microcode.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/msr.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/palinfo.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/salinfo.c | 2 | ||||
-rw-r--r-- | arch/s390/appldata/appldata_base.c | 2 | ||||
-rw-r--r-- | arch/x86_64/kernel/mce.c | 2 | ||||
-rw-r--r-- | arch/x86_64/kernel/mce_amd.c | 4 | ||||
-rw-r--r-- | arch/x86_64/kernel/vsyscall.c | 2 | ||||
-rw-r--r-- | block/ll_rw_blk.c | 4 | ||||
-rw-r--r-- | drivers/base/topology.c | 2 | ||||
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 2 | ||||
-rw-r--r-- | fs/buffer.c | 2 | ||||
-rw-r--r-- | include/linux/cpu.h | 6 | ||||
-rw-r--r-- | kernel/cpuset.c | 4 | ||||
-rw-r--r-- | kernel/profile.c | 3 | ||||
-rw-r--r-- | kernel/sched.c | 3 | ||||
-rw-r--r-- | kernel/workqueue.c | 2 | ||||
-rw-r--r-- | lib/radix-tree.c | 2 | ||||
-rw-r--r-- | mm/page_alloc.c | 4 | ||||
-rw-r--r-- | mm/swap.c | 2 | ||||
-rw-r--r-- | mm/vmscan.c | 2 | ||||
-rw-r--r-- | net/core/dev.c | 2 | ||||
-rw-r--r-- | net/core/flow.c | 2 |
25 files changed, 8 insertions, 56 deletions
diff --git a/arch/i386/kernel/cpu/mcheck/therm_throt.c b/arch/i386/kernel/cpu/mcheck/therm_throt.c index bad8b4420709..065005c3f168 100644 --- a/arch/i386/kernel/cpu/mcheck/therm_throt.c +++ b/arch/i386/kernel/cpu/mcheck/therm_throt.c | |||
@@ -116,7 +116,6 @@ static __cpuinit int thermal_throttle_add_dev(struct sys_device *sys_dev) | |||
116 | return sysfs_create_group(&sys_dev->kobj, &thermal_throttle_attr_group); | 116 | return sysfs_create_group(&sys_dev->kobj, &thermal_throttle_attr_group); |
117 | } | 117 | } |
118 | 118 | ||
119 | #ifdef CONFIG_HOTPLUG_CPU | ||
120 | static __cpuinit void thermal_throttle_remove_dev(struct sys_device *sys_dev) | 119 | static __cpuinit void thermal_throttle_remove_dev(struct sys_device *sys_dev) |
121 | { | 120 | { |
122 | return sysfs_remove_group(&sys_dev->kobj, &thermal_throttle_attr_group); | 121 | return sysfs_remove_group(&sys_dev->kobj, &thermal_throttle_attr_group); |
@@ -153,7 +152,6 @@ static struct notifier_block thermal_throttle_cpu_notifier = | |||
153 | { | 152 | { |
154 | .notifier_call = thermal_throttle_cpu_callback, | 153 | .notifier_call = thermal_throttle_cpu_callback, |
155 | }; | 154 | }; |
156 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
157 | 155 | ||
158 | static __init int thermal_throttle_init_device(void) | 156 | static __init int thermal_throttle_init_device(void) |
159 | { | 157 | { |
diff --git a/arch/i386/kernel/cpuid.c b/arch/i386/kernel/cpuid.c index ab0c327e79dc..23b2cc748d4e 100644 --- a/arch/i386/kernel/cpuid.c +++ b/arch/i386/kernel/cpuid.c | |||
@@ -167,7 +167,6 @@ static int cpuid_device_create(int i) | |||
167 | return err; | 167 | return err; |
168 | } | 168 | } |
169 | 169 | ||
170 | #ifdef CONFIG_HOTPLUG_CPU | ||
171 | static int cpuid_class_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) | 170 | static int cpuid_class_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) |
172 | { | 171 | { |
173 | unsigned int cpu = (unsigned long)hcpu; | 172 | unsigned int cpu = (unsigned long)hcpu; |
@@ -187,7 +186,6 @@ static struct notifier_block __cpuinitdata cpuid_class_cpu_notifier = | |||
187 | { | 186 | { |
188 | .notifier_call = cpuid_class_cpu_callback, | 187 | .notifier_call = cpuid_class_cpu_callback, |
189 | }; | 188 | }; |
190 | #endif /* !CONFIG_HOTPLUG_CPU */ | ||
191 | 189 | ||
192 | static int __init cpuid_init(void) | 190 | static int __init cpuid_init(void) |
193 | { | 191 | { |
diff --git a/arch/i386/kernel/microcode.c b/arch/i386/kernel/microcode.c index 23f5984d0654..972346604f9d 100644 --- a/arch/i386/kernel/microcode.c +++ b/arch/i386/kernel/microcode.c | |||
@@ -703,7 +703,6 @@ static struct sysdev_driver mc_sysdev_driver = { | |||
703 | .resume = mc_sysdev_resume, | 703 | .resume = mc_sysdev_resume, |
704 | }; | 704 | }; |
705 | 705 | ||
706 | #ifdef CONFIG_HOTPLUG_CPU | ||
707 | static __cpuinit int | 706 | static __cpuinit int |
708 | mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) | 707 | mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) |
709 | { | 708 | { |
@@ -726,7 +725,6 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) | |||
726 | static struct notifier_block mc_cpu_notifier = { | 725 | static struct notifier_block mc_cpu_notifier = { |
727 | .notifier_call = mc_cpu_callback, | 726 | .notifier_call = mc_cpu_callback, |
728 | }; | 727 | }; |
729 | #endif | ||
730 | 728 | ||
731 | static int __init microcode_init (void) | 729 | static int __init microcode_init (void) |
732 | { | 730 | { |
diff --git a/arch/i386/kernel/msr.c b/arch/i386/kernel/msr.c index a773f776c9ea..7763c67ca282 100644 --- a/arch/i386/kernel/msr.c +++ b/arch/i386/kernel/msr.c | |||
@@ -250,7 +250,6 @@ static int msr_device_create(int i) | |||
250 | return err; | 250 | return err; |
251 | } | 251 | } |
252 | 252 | ||
253 | #ifdef CONFIG_HOTPLUG_CPU | ||
254 | static int msr_class_cpu_callback(struct notifier_block *nfb, | 253 | static int msr_class_cpu_callback(struct notifier_block *nfb, |
255 | unsigned long action, void *hcpu) | 254 | unsigned long action, void *hcpu) |
256 | { | 255 | { |
@@ -271,7 +270,6 @@ static struct notifier_block __cpuinitdata msr_class_cpu_notifier = | |||
271 | { | 270 | { |
272 | .notifier_call = msr_class_cpu_callback, | 271 | .notifier_call = msr_class_cpu_callback, |
273 | }; | 272 | }; |
274 | #endif | ||
275 | 273 | ||
276 | static int __init msr_init(void) | 274 | static int __init msr_init(void) |
277 | { | 275 | { |
diff --git a/arch/ia64/kernel/palinfo.c b/arch/ia64/kernel/palinfo.c index 0b546e2b36ac..c4c10a0b99d9 100644 --- a/arch/ia64/kernel/palinfo.c +++ b/arch/ia64/kernel/palinfo.c | |||
@@ -952,7 +952,6 @@ remove_palinfo_proc_entries(unsigned int hcpu) | |||
952 | } | 952 | } |
953 | } | 953 | } |
954 | 954 | ||
955 | #ifdef CONFIG_HOTPLUG_CPU | ||
956 | static int palinfo_cpu_callback(struct notifier_block *nfb, | 955 | static int palinfo_cpu_callback(struct notifier_block *nfb, |
957 | unsigned long action, void *hcpu) | 956 | unsigned long action, void *hcpu) |
958 | { | 957 | { |
@@ -974,7 +973,6 @@ static struct notifier_block palinfo_cpu_notifier = | |||
974 | .notifier_call = palinfo_cpu_callback, | 973 | .notifier_call = palinfo_cpu_callback, |
975 | .priority = 0, | 974 | .priority = 0, |
976 | }; | 975 | }; |
977 | #endif | ||
978 | 976 | ||
979 | static int __init | 977 | static int __init |
980 | palinfo_init(void) | 978 | palinfo_init(void) |
diff --git a/arch/ia64/kernel/salinfo.c b/arch/ia64/kernel/salinfo.c index e63b8ca5344a..fd607ca51a8d 100644 --- a/arch/ia64/kernel/salinfo.c +++ b/arch/ia64/kernel/salinfo.c | |||
@@ -575,7 +575,6 @@ static struct file_operations salinfo_data_fops = { | |||
575 | .write = salinfo_log_write, | 575 | .write = salinfo_log_write, |
576 | }; | 576 | }; |
577 | 577 | ||
578 | #ifdef CONFIG_HOTPLUG_CPU | ||
579 | static int __devinit | 578 | static int __devinit |
580 | salinfo_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) | 579 | salinfo_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) |
581 | { | 580 | { |
@@ -620,7 +619,6 @@ static struct notifier_block salinfo_cpu_notifier = | |||
620 | .notifier_call = salinfo_cpu_callback, | 619 | .notifier_call = salinfo_cpu_callback, |
621 | .priority = 0, | 620 | .priority = 0, |
622 | }; | 621 | }; |
623 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
624 | 622 | ||
625 | static int __init | 623 | static int __init |
626 | salinfo_init(void) | 624 | salinfo_init(void) |
diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c index 67d5cf9cba83..b8c237290263 100644 --- a/arch/s390/appldata/appldata_base.c +++ b/arch/s390/appldata/appldata_base.c | |||
@@ -561,7 +561,6 @@ appldata_offline_cpu(int cpu) | |||
561 | spin_unlock(&appldata_timer_lock); | 561 | spin_unlock(&appldata_timer_lock); |
562 | } | 562 | } |
563 | 563 | ||
564 | #ifdef CONFIG_HOTPLUG_CPU | ||
565 | static int __cpuinit | 564 | static int __cpuinit |
566 | appldata_cpu_notify(struct notifier_block *self, | 565 | appldata_cpu_notify(struct notifier_block *self, |
567 | unsigned long action, void *hcpu) | 566 | unsigned long action, void *hcpu) |
@@ -582,7 +581,6 @@ appldata_cpu_notify(struct notifier_block *self, | |||
582 | static struct notifier_block appldata_nb = { | 581 | static struct notifier_block appldata_nb = { |
583 | .notifier_call = appldata_cpu_notify, | 582 | .notifier_call = appldata_cpu_notify, |
584 | }; | 583 | }; |
585 | #endif | ||
586 | 584 | ||
587 | /* | 585 | /* |
588 | * appldata_init() | 586 | * appldata_init() |
diff --git a/arch/x86_64/kernel/mce.c b/arch/x86_64/kernel/mce.c index c7587fc39015..bc863c464a1f 100644 --- a/arch/x86_64/kernel/mce.c +++ b/arch/x86_64/kernel/mce.c | |||
@@ -641,7 +641,6 @@ static __cpuinit int mce_create_device(unsigned int cpu) | |||
641 | return err; | 641 | return err; |
642 | } | 642 | } |
643 | 643 | ||
644 | #ifdef CONFIG_HOTPLUG_CPU | ||
645 | static void mce_remove_device(unsigned int cpu) | 644 | static void mce_remove_device(unsigned int cpu) |
646 | { | 645 | { |
647 | int i; | 646 | int i; |
@@ -674,7 +673,6 @@ mce_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) | |||
674 | static struct notifier_block mce_cpu_notifier = { | 673 | static struct notifier_block mce_cpu_notifier = { |
675 | .notifier_call = mce_cpu_callback, | 674 | .notifier_call = mce_cpu_callback, |
676 | }; | 675 | }; |
677 | #endif | ||
678 | 676 | ||
679 | static __init int mce_init_device(void) | 677 | static __init int mce_init_device(void) |
680 | { | 678 | { |
diff --git a/arch/x86_64/kernel/mce_amd.c b/arch/x86_64/kernel/mce_amd.c index 883fe747f64c..fa09debad4b7 100644 --- a/arch/x86_64/kernel/mce_amd.c +++ b/arch/x86_64/kernel/mce_amd.c | |||
@@ -551,7 +551,6 @@ out: | |||
551 | return err; | 551 | return err; |
552 | } | 552 | } |
553 | 553 | ||
554 | #ifdef CONFIG_HOTPLUG_CPU | ||
555 | /* | 554 | /* |
556 | * let's be hotplug friendly. | 555 | * let's be hotplug friendly. |
557 | * in case of multiple core processors, the first core always takes ownership | 556 | * in case of multiple core processors, the first core always takes ownership |
@@ -594,12 +593,14 @@ static void threshold_remove_bank(unsigned int cpu, int bank) | |||
594 | 593 | ||
595 | sprintf(name, "threshold_bank%i", bank); | 594 | sprintf(name, "threshold_bank%i", bank); |
596 | 595 | ||
596 | #ifdef CONFIG_SMP | ||
597 | /* sibling symlink */ | 597 | /* sibling symlink */ |
598 | if (shared_bank[bank] && b->blocks->cpu != cpu) { | 598 | if (shared_bank[bank] && b->blocks->cpu != cpu) { |
599 | sysfs_remove_link(&per_cpu(device_mce, cpu).kobj, name); | 599 | sysfs_remove_link(&per_cpu(device_mce, cpu).kobj, name); |
600 | per_cpu(threshold_banks, cpu)[bank] = NULL; | 600 | per_cpu(threshold_banks, cpu)[bank] = NULL; |
601 | return; | 601 | return; |
602 | } | 602 | } |
603 | #endif | ||
603 | 604 | ||
604 | /* remove all sibling symlinks before unregistering */ | 605 | /* remove all sibling symlinks before unregistering */ |
605 | for_each_cpu_mask(i, b->cpus) { | 606 | for_each_cpu_mask(i, b->cpus) { |
@@ -656,7 +657,6 @@ static int threshold_cpu_callback(struct notifier_block *nfb, | |||
656 | static struct notifier_block threshold_cpu_notifier = { | 657 | static struct notifier_block threshold_cpu_notifier = { |
657 | .notifier_call = threshold_cpu_callback, | 658 | .notifier_call = threshold_cpu_callback, |
658 | }; | 659 | }; |
659 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
660 | 660 | ||
661 | static __init int threshold_init_device(void) | 661 | static __init int threshold_init_device(void) |
662 | { | 662 | { |
diff --git a/arch/x86_64/kernel/vsyscall.c b/arch/x86_64/kernel/vsyscall.c index 630036c06c75..3785e4954734 100644 --- a/arch/x86_64/kernel/vsyscall.c +++ b/arch/x86_64/kernel/vsyscall.c | |||
@@ -275,7 +275,6 @@ static void __cpuinit cpu_vsyscall_init(void *arg) | |||
275 | vsyscall_set_cpu(raw_smp_processor_id()); | 275 | vsyscall_set_cpu(raw_smp_processor_id()); |
276 | } | 276 | } |
277 | 277 | ||
278 | #ifdef CONFIG_HOTPLUG_CPU | ||
279 | static int __cpuinit | 278 | static int __cpuinit |
280 | cpu_vsyscall_notifier(struct notifier_block *n, unsigned long action, void *arg) | 279 | cpu_vsyscall_notifier(struct notifier_block *n, unsigned long action, void *arg) |
281 | { | 280 | { |
@@ -284,7 +283,6 @@ cpu_vsyscall_notifier(struct notifier_block *n, unsigned long action, void *arg) | |||
284 | smp_call_function_single(cpu, cpu_vsyscall_init, NULL, 0, 1); | 283 | smp_call_function_single(cpu, cpu_vsyscall_init, NULL, 0, 1); |
285 | return NOTIFY_DONE; | 284 | return NOTIFY_DONE; |
286 | } | 285 | } |
287 | #endif | ||
288 | 286 | ||
289 | static void __init map_vsyscall(void) | 287 | static void __init map_vsyscall(void) |
290 | { | 288 | { |
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index a4ff3271d4a8..31512cd9f3ad 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -3459,8 +3459,6 @@ static void blk_done_softirq(struct softirq_action *h) | |||
3459 | } | 3459 | } |
3460 | } | 3460 | } |
3461 | 3461 | ||
3462 | #ifdef CONFIG_HOTPLUG_CPU | ||
3463 | |||
3464 | static int blk_cpu_notify(struct notifier_block *self, unsigned long action, | 3462 | static int blk_cpu_notify(struct notifier_block *self, unsigned long action, |
3465 | void *hcpu) | 3463 | void *hcpu) |
3466 | { | 3464 | { |
@@ -3486,8 +3484,6 @@ static struct notifier_block __devinitdata blk_cpu_notifier = { | |||
3486 | .notifier_call = blk_cpu_notify, | 3484 | .notifier_call = blk_cpu_notify, |
3487 | }; | 3485 | }; |
3488 | 3486 | ||
3489 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
3490 | |||
3491 | /** | 3487 | /** |
3492 | * blk_complete_request - end I/O on a request | 3488 | * blk_complete_request - end I/O on a request |
3493 | * @req: the request being processed | 3489 | * @req: the request being processed |
diff --git a/drivers/base/topology.c b/drivers/base/topology.c index 3d12b85b0962..067a9e8bc377 100644 --- a/drivers/base/topology.c +++ b/drivers/base/topology.c | |||
@@ -108,7 +108,6 @@ static int __cpuinit topology_add_dev(unsigned int cpu) | |||
108 | return rc; | 108 | return rc; |
109 | } | 109 | } |
110 | 110 | ||
111 | #ifdef CONFIG_HOTPLUG_CPU | ||
112 | static void __cpuinit topology_remove_dev(unsigned int cpu) | 111 | static void __cpuinit topology_remove_dev(unsigned int cpu) |
113 | { | 112 | { |
114 | struct sys_device *sys_dev = get_cpu_sysdev(cpu); | 113 | struct sys_device *sys_dev = get_cpu_sysdev(cpu); |
@@ -136,7 +135,6 @@ static int __cpuinit topology_cpu_callback(struct notifier_block *nfb, | |||
136 | } | 135 | } |
137 | return rc ? NOTIFY_BAD : NOTIFY_OK; | 136 | return rc ? NOTIFY_BAD : NOTIFY_OK; |
138 | } | 137 | } |
139 | #endif | ||
140 | 138 | ||
141 | static int __cpuinit topology_sysfs_init(void) | 139 | static int __cpuinit topology_sysfs_init(void) |
142 | { | 140 | { |
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 7a7c6e6dfe4f..47ab42db122a 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -1537,7 +1537,6 @@ int cpufreq_update_policy(unsigned int cpu) | |||
1537 | } | 1537 | } |
1538 | EXPORT_SYMBOL(cpufreq_update_policy); | 1538 | EXPORT_SYMBOL(cpufreq_update_policy); |
1539 | 1539 | ||
1540 | #ifdef CONFIG_HOTPLUG_CPU | ||
1541 | static int cpufreq_cpu_callback(struct notifier_block *nfb, | 1540 | static int cpufreq_cpu_callback(struct notifier_block *nfb, |
1542 | unsigned long action, void *hcpu) | 1541 | unsigned long action, void *hcpu) |
1543 | { | 1542 | { |
@@ -1577,7 +1576,6 @@ static struct notifier_block __cpuinitdata cpufreq_cpu_notifier = | |||
1577 | { | 1576 | { |
1578 | .notifier_call = cpufreq_cpu_callback, | 1577 | .notifier_call = cpufreq_cpu_callback, |
1579 | }; | 1578 | }; |
1580 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
1581 | 1579 | ||
1582 | /********************************************************************* | 1580 | /********************************************************************* |
1583 | * REGISTER / UNREGISTER CPUFREQ DRIVER * | 1581 | * REGISTER / UNREGISTER CPUFREQ DRIVER * |
diff --git a/fs/buffer.c b/fs/buffer.c index a8ca0ac21488..517860f2d75b 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -2972,7 +2972,6 @@ init_buffer_head(void *data, struct kmem_cache *cachep, unsigned long flags) | |||
2972 | } | 2972 | } |
2973 | } | 2973 | } |
2974 | 2974 | ||
2975 | #ifdef CONFIG_HOTPLUG_CPU | ||
2976 | static void buffer_exit_cpu(int cpu) | 2975 | static void buffer_exit_cpu(int cpu) |
2977 | { | 2976 | { |
2978 | int i; | 2977 | int i; |
@@ -2994,7 +2993,6 @@ static int buffer_cpu_notify(struct notifier_block *self, | |||
2994 | buffer_exit_cpu((unsigned long)hcpu); | 2993 | buffer_exit_cpu((unsigned long)hcpu); |
2995 | return NOTIFY_OK; | 2994 | return NOTIFY_OK; |
2996 | } | 2995 | } |
2997 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
2998 | 2996 | ||
2999 | void __init buffer_init(void) | 2997 | void __init buffer_init(void) |
3000 | { | 2998 | { |
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index f02d71bf6894..71dc6ba4f73f 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
@@ -89,9 +89,9 @@ int cpu_down(unsigned int cpu); | |||
89 | #define lock_cpu_hotplug() do { } while (0) | 89 | #define lock_cpu_hotplug() do { } while (0) |
90 | #define unlock_cpu_hotplug() do { } while (0) | 90 | #define unlock_cpu_hotplug() do { } while (0) |
91 | #define lock_cpu_hotplug_interruptible() 0 | 91 | #define lock_cpu_hotplug_interruptible() 0 |
92 | #define hotcpu_notifier(fn, pri) do { } while (0) | 92 | #define hotcpu_notifier(fn, pri) do { (void)(fn); } while (0) |
93 | #define register_hotcpu_notifier(nb) do { } while (0) | 93 | #define register_hotcpu_notifier(nb) do { (void)(nb); } while (0) |
94 | #define unregister_hotcpu_notifier(nb) do { } while (0) | 94 | #define unregister_hotcpu_notifier(nb) do { (void)(nb); } while (0) |
95 | 95 | ||
96 | /* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */ | 96 | /* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */ |
97 | static inline int cpu_is_offline(int cpu) { return 0; } | 97 | static inline int cpu_is_offline(int cpu) { return 0; } |
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index bd1e89c4c96a..9b62b4c03ad0 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -2044,7 +2044,6 @@ out: | |||
2044 | return err; | 2044 | return err; |
2045 | } | 2045 | } |
2046 | 2046 | ||
2047 | #if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_MEMORY_HOTPLUG) | ||
2048 | /* | 2047 | /* |
2049 | * If common_cpu_mem_hotplug_unplug(), below, unplugs any CPUs | 2048 | * If common_cpu_mem_hotplug_unplug(), below, unplugs any CPUs |
2050 | * or memory nodes, we need to walk over the cpuset hierarchy, | 2049 | * or memory nodes, we need to walk over the cpuset hierarchy, |
@@ -2108,9 +2107,7 @@ static void common_cpu_mem_hotplug_unplug(void) | |||
2108 | mutex_unlock(&callback_mutex); | 2107 | mutex_unlock(&callback_mutex); |
2109 | mutex_unlock(&manage_mutex); | 2108 | mutex_unlock(&manage_mutex); |
2110 | } | 2109 | } |
2111 | #endif | ||
2112 | 2110 | ||
2113 | #ifdef CONFIG_HOTPLUG_CPU | ||
2114 | /* | 2111 | /* |
2115 | * The top_cpuset tracks what CPUs and Memory Nodes are online, | 2112 | * The top_cpuset tracks what CPUs and Memory Nodes are online, |
2116 | * period. This is necessary in order to make cpusets transparent | 2113 | * period. This is necessary in order to make cpusets transparent |
@@ -2127,7 +2124,6 @@ static int cpuset_handle_cpuhp(struct notifier_block *nb, | |||
2127 | common_cpu_mem_hotplug_unplug(); | 2124 | common_cpu_mem_hotplug_unplug(); |
2128 | return 0; | 2125 | return 0; |
2129 | } | 2126 | } |
2130 | #endif | ||
2131 | 2127 | ||
2132 | #ifdef CONFIG_MEMORY_HOTPLUG | 2128 | #ifdef CONFIG_MEMORY_HOTPLUG |
2133 | /* | 2129 | /* |
diff --git a/kernel/profile.c b/kernel/profile.c index 04fd84e8cdbe..0961d93e1d91 100644 --- a/kernel/profile.c +++ b/kernel/profile.c | |||
@@ -319,7 +319,6 @@ out: | |||
319 | put_cpu(); | 319 | put_cpu(); |
320 | } | 320 | } |
321 | 321 | ||
322 | #ifdef CONFIG_HOTPLUG_CPU | ||
323 | static int __devinit profile_cpu_callback(struct notifier_block *info, | 322 | static int __devinit profile_cpu_callback(struct notifier_block *info, |
324 | unsigned long action, void *__cpu) | 323 | unsigned long action, void *__cpu) |
325 | { | 324 | { |
@@ -372,10 +371,10 @@ static int __devinit profile_cpu_callback(struct notifier_block *info, | |||
372 | } | 371 | } |
373 | return NOTIFY_OK; | 372 | return NOTIFY_OK; |
374 | } | 373 | } |
375 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
376 | #else /* !CONFIG_SMP */ | 374 | #else /* !CONFIG_SMP */ |
377 | #define profile_flip_buffers() do { } while (0) | 375 | #define profile_flip_buffers() do { } while (0) |
378 | #define profile_discard_flip_buffers() do { } while (0) | 376 | #define profile_discard_flip_buffers() do { } while (0) |
377 | #define profile_cpu_callback NULL | ||
379 | 378 | ||
380 | void profile_hits(int type, void *__pc, unsigned int nr_hits) | 379 | void profile_hits(int type, void *__pc, unsigned int nr_hits) |
381 | { | 380 | { |
diff --git a/kernel/sched.c b/kernel/sched.c index 75a005ed4eda..c83f531c2886 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6740,8 +6740,6 @@ SYSDEV_ATTR(sched_smt_power_savings, 0644, sched_smt_power_savings_show, | |||
6740 | sched_smt_power_savings_store); | 6740 | sched_smt_power_savings_store); |
6741 | #endif | 6741 | #endif |
6742 | 6742 | ||
6743 | |||
6744 | #ifdef CONFIG_HOTPLUG_CPU | ||
6745 | /* | 6743 | /* |
6746 | * Force a reinitialization of the sched domains hierarchy. The domains | 6744 | * Force a reinitialization of the sched domains hierarchy. The domains |
6747 | * and groups cannot be updated in place without racing with the balancing | 6745 | * and groups cannot be updated in place without racing with the balancing |
@@ -6774,7 +6772,6 @@ static int update_sched_domains(struct notifier_block *nfb, | |||
6774 | 6772 | ||
6775 | return NOTIFY_OK; | 6773 | return NOTIFY_OK; |
6776 | } | 6774 | } |
6777 | #endif | ||
6778 | 6775 | ||
6779 | void __init sched_init_smp(void) | 6776 | void __init sched_init_smp(void) |
6780 | { | 6777 | { |
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 5484d6e045c2..c5257316f4b9 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -655,7 +655,6 @@ int current_is_keventd(void) | |||
655 | 655 | ||
656 | } | 656 | } |
657 | 657 | ||
658 | #ifdef CONFIG_HOTPLUG_CPU | ||
659 | /* Take the work from this (downed) CPU. */ | 658 | /* Take the work from this (downed) CPU. */ |
660 | static void take_over_work(struct workqueue_struct *wq, unsigned int cpu) | 659 | static void take_over_work(struct workqueue_struct *wq, unsigned int cpu) |
661 | { | 660 | { |
@@ -738,7 +737,6 @@ static int __devinit workqueue_cpu_callback(struct notifier_block *nfb, | |||
738 | 737 | ||
739 | return NOTIFY_OK; | 738 | return NOTIFY_OK; |
740 | } | 739 | } |
741 | #endif | ||
742 | 740 | ||
743 | void init_workqueues(void) | 741 | void init_workqueues(void) |
744 | { | 742 | { |
diff --git a/lib/radix-tree.c b/lib/radix-tree.c index e2cefabb5aa0..d69ddbe43865 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c | |||
@@ -996,7 +996,6 @@ static __init void radix_tree_init_maxindex(void) | |||
996 | height_to_maxindex[i] = __maxindex(i); | 996 | height_to_maxindex[i] = __maxindex(i); |
997 | } | 997 | } |
998 | 998 | ||
999 | #ifdef CONFIG_HOTPLUG_CPU | ||
1000 | static int radix_tree_callback(struct notifier_block *nfb, | 999 | static int radix_tree_callback(struct notifier_block *nfb, |
1001 | unsigned long action, | 1000 | unsigned long action, |
1002 | void *hcpu) | 1001 | void *hcpu) |
@@ -1016,7 +1015,6 @@ static int radix_tree_callback(struct notifier_block *nfb, | |||
1016 | } | 1015 | } |
1017 | return NOTIFY_OK; | 1016 | return NOTIFY_OK; |
1018 | } | 1017 | } |
1019 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
1020 | 1018 | ||
1021 | void __init radix_tree_init(void) | 1019 | void __init radix_tree_init(void) |
1022 | { | 1020 | { |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 2273952300d4..27ec7a1b8022 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -701,7 +701,6 @@ void drain_node_pages(int nodeid) | |||
701 | } | 701 | } |
702 | #endif | 702 | #endif |
703 | 703 | ||
704 | #if defined(CONFIG_PM) || defined(CONFIG_HOTPLUG_CPU) | ||
705 | static void __drain_pages(unsigned int cpu) | 704 | static void __drain_pages(unsigned int cpu) |
706 | { | 705 | { |
707 | unsigned long flags; | 706 | unsigned long flags; |
@@ -723,7 +722,6 @@ static void __drain_pages(unsigned int cpu) | |||
723 | } | 722 | } |
724 | } | 723 | } |
725 | } | 724 | } |
726 | #endif /* CONFIG_PM || CONFIG_HOTPLUG_CPU */ | ||
727 | 725 | ||
728 | #ifdef CONFIG_PM | 726 | #ifdef CONFIG_PM |
729 | 727 | ||
@@ -2907,7 +2905,6 @@ void __init free_area_init(unsigned long *zones_size) | |||
2907 | __pa(PAGE_OFFSET) >> PAGE_SHIFT, NULL); | 2905 | __pa(PAGE_OFFSET) >> PAGE_SHIFT, NULL); |
2908 | } | 2906 | } |
2909 | 2907 | ||
2910 | #ifdef CONFIG_HOTPLUG_CPU | ||
2911 | static int page_alloc_cpu_notify(struct notifier_block *self, | 2908 | static int page_alloc_cpu_notify(struct notifier_block *self, |
2912 | unsigned long action, void *hcpu) | 2909 | unsigned long action, void *hcpu) |
2913 | { | 2910 | { |
@@ -2922,7 +2919,6 @@ static int page_alloc_cpu_notify(struct notifier_block *self, | |||
2922 | } | 2919 | } |
2923 | return NOTIFY_OK; | 2920 | return NOTIFY_OK; |
2924 | } | 2921 | } |
2925 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
2926 | 2922 | ||
2927 | void __init page_alloc_init(void) | 2923 | void __init page_alloc_init(void) |
2928 | { | 2924 | { |
@@ -514,5 +514,7 @@ void __init swap_setup(void) | |||
514 | * Right now other parts of the system means that we | 514 | * Right now other parts of the system means that we |
515 | * _really_ don't want to cluster much more | 515 | * _really_ don't want to cluster much more |
516 | */ | 516 | */ |
517 | #ifdef CONFIG_HOTPLUG_CPU | ||
517 | hotcpu_notifier(cpu_swap_callback, 0); | 518 | hotcpu_notifier(cpu_swap_callback, 0); |
519 | #endif | ||
518 | } | 520 | } |
diff --git a/mm/vmscan.c b/mm/vmscan.c index f6616e81fac7..093f5fe6dd77 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1513,7 +1513,6 @@ out: | |||
1513 | } | 1513 | } |
1514 | #endif | 1514 | #endif |
1515 | 1515 | ||
1516 | #ifdef CONFIG_HOTPLUG_CPU | ||
1517 | /* It's optimal to keep kswapds on the same CPUs as their memory, but | 1516 | /* It's optimal to keep kswapds on the same CPUs as their memory, but |
1518 | not required for correctness. So if the last cpu in a node goes | 1517 | not required for correctness. So if the last cpu in a node goes |
1519 | away, we get changed to run anywhere: as the first one comes back, | 1518 | away, we get changed to run anywhere: as the first one comes back, |
@@ -1534,7 +1533,6 @@ static int __devinit cpu_callback(struct notifier_block *nfb, | |||
1534 | } | 1533 | } |
1535 | return NOTIFY_OK; | 1534 | return NOTIFY_OK; |
1536 | } | 1535 | } |
1537 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
1538 | 1536 | ||
1539 | /* | 1537 | /* |
1540 | * This kswapd start function will be called by init and node-hot-add. | 1538 | * This kswapd start function will be called by init and node-hot-add. |
diff --git a/net/core/dev.c b/net/core/dev.c index 59d058a3b504..e660cb57e42a 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -3340,7 +3340,6 @@ void unregister_netdev(struct net_device *dev) | |||
3340 | 3340 | ||
3341 | EXPORT_SYMBOL(unregister_netdev); | 3341 | EXPORT_SYMBOL(unregister_netdev); |
3342 | 3342 | ||
3343 | #ifdef CONFIG_HOTPLUG_CPU | ||
3344 | static int dev_cpu_callback(struct notifier_block *nfb, | 3343 | static int dev_cpu_callback(struct notifier_block *nfb, |
3345 | unsigned long action, | 3344 | unsigned long action, |
3346 | void *ocpu) | 3345 | void *ocpu) |
@@ -3384,7 +3383,6 @@ static int dev_cpu_callback(struct notifier_block *nfb, | |||
3384 | 3383 | ||
3385 | return NOTIFY_OK; | 3384 | return NOTIFY_OK; |
3386 | } | 3385 | } |
3387 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
3388 | 3386 | ||
3389 | #ifdef CONFIG_NET_DMA | 3387 | #ifdef CONFIG_NET_DMA |
3390 | /** | 3388 | /** |
diff --git a/net/core/flow.c b/net/core/flow.c index 104c25d00a1d..d137f971f97d 100644 --- a/net/core/flow.c +++ b/net/core/flow.c | |||
@@ -340,7 +340,6 @@ static void __devinit flow_cache_cpu_prepare(int cpu) | |||
340 | tasklet_init(tasklet, flow_cache_flush_tasklet, 0); | 340 | tasklet_init(tasklet, flow_cache_flush_tasklet, 0); |
341 | } | 341 | } |
342 | 342 | ||
343 | #ifdef CONFIG_HOTPLUG_CPU | ||
344 | static int flow_cache_cpu(struct notifier_block *nfb, | 343 | static int flow_cache_cpu(struct notifier_block *nfb, |
345 | unsigned long action, | 344 | unsigned long action, |
346 | void *hcpu) | 345 | void *hcpu) |
@@ -349,7 +348,6 @@ static int flow_cache_cpu(struct notifier_block *nfb, | |||
349 | __flow_cache_shrink((unsigned long)hcpu, 0); | 348 | __flow_cache_shrink((unsigned long)hcpu, 0); |
350 | return NOTIFY_OK; | 349 | return NOTIFY_OK; |
351 | } | 350 | } |
352 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
353 | 351 | ||
354 | static int __init flow_cache_init(void) | 352 | static int __init flow_cache_init(void) |
355 | { | 353 | { |