* [2.6 patch] i386: no need to make enable_cpu_hotplug a variable
@ 2007-07-29 15:02 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2007-07-29 15:02 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
As long as there's no write access to this variable there's no reason
to let gcc check it at runtime.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch has been sent on:
- 6 Jul 2007
arch/i386/kernel/topology.c | 2 --
include/asm-i386/cpu.h | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
--- linux-2.6.22-rc6-mm1/include/asm-i386/cpu.h.old 2007-07-04 20:29:25.000000000 +0200
+++ linux-2.6.22-rc6-mm1/include/asm-i386/cpu.h 2007-07-04 20:36:33.000000000 +0200
@@ -13,7 +13,7 @@
extern int arch_register_cpu(int num);
#ifdef CONFIG_HOTPLUG_CPU
extern void arch_unregister_cpu(int);
-extern int enable_cpu_hotplug;
+#define enable_cpu_hotplug 1
#else
#define enable_cpu_hotplug 0
#endif
--- linux-2.6.22-rc6-mm1/arch/i386/kernel/topology.c.old 2007-07-04 20:30:12.000000000 +0200
+++ linux-2.6.22-rc6-mm1/arch/i386/kernel/topology.c 2007-07-04 20:35:56.000000000 +0200
@@ -51,8 +51,6 @@
}
#ifdef CONFIG_HOTPLUG_CPU
-int enable_cpu_hotplug = 1;
-
void arch_unregister_cpu(int num) {
return unregister_cpu(&cpu_devices[num].cpu);
}
^ permalink raw reply [flat|nested] 2+ messages in thread* [2.6 patch] i386: no need to make enable_cpu_hotplug a variable
@ 2007-07-05 23:22 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2007-07-05 23:22 UTC (permalink / raw)
To: linux-kernel
As long as there's no write access to this variable there's no reason
to let gcc check it at runtime.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
arch/i386/kernel/topology.c | 2 --
include/asm-i386/cpu.h | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
--- linux-2.6.22-rc6-mm1/include/asm-i386/cpu.h.old 2007-07-04 20:29:25.000000000 +0200
+++ linux-2.6.22-rc6-mm1/include/asm-i386/cpu.h 2007-07-04 20:36:33.000000000 +0200
@@ -13,7 +13,7 @@
extern int arch_register_cpu(int num);
#ifdef CONFIG_HOTPLUG_CPU
extern void arch_unregister_cpu(int);
-extern int enable_cpu_hotplug;
+#define enable_cpu_hotplug 1
#else
#define enable_cpu_hotplug 0
#endif
--- linux-2.6.22-rc6-mm1/arch/i386/kernel/topology.c.old 2007-07-04 20:30:12.000000000 +0200
+++ linux-2.6.22-rc6-mm1/arch/i386/kernel/topology.c 2007-07-04 20:35:56.000000000 +0200
@@ -51,8 +51,6 @@
}
#ifdef CONFIG_HOTPLUG_CPU
-int enable_cpu_hotplug = 1;
-
void arch_unregister_cpu(int num) {
return unregister_cpu(&cpu_devices[num].cpu);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-29 15:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29 15:02 [2.6 patch] i386: no need to make enable_cpu_hotplug a variable Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2007-07-05 23:22 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox