From: Adrian Bunk <bunk@stusta.de>
To: linux-kernel@vger.kernel.org
Subject: [2.6 patch] i386: no need to make enable_cpu_hotplug a variable
Date: Fri, 6 Jul 2007 01:22:50 +0200 [thread overview]
Message-ID: <20070705232249.GW3492@stusta.de> (raw)
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);
}
next reply other threads:[~2007-07-05 23:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-05 23:22 Adrian Bunk [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-07-29 15:02 [2.6 patch] i386: no need to make enable_cpu_hotplug a variable Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070705232249.GW3492@stusta.de \
--to=bunk@stusta.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.