From: Yinghai Lu <yinghai@kernel.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
Andrew Morton <akpm@linux-foundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: fix wakeup_cpu with numaq/es7000 v2
Date: Mon, 17 Nov 2008 18:49:08 -0800 [thread overview]
Message-ID: <49222D24.5020601@kernel.org> (raw)
In-Reply-To: <20081117232837.GA10308@elte.hu>
---
[PATCH] x86: use update_genapic to update inquire_remote_apic
Impact: clean up
So don't can comparing in that func when debug is disabled.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
---
arch/x86/include/asm/es7000/wakecpu.h | 3 +--
arch/x86/include/asm/mach-default/mach_wakecpu.h | 3 +--
arch/x86/kernel/es7000_32.c | 11 ++++++++++-
arch/x86/kernel/setup.c | 9 +++++++++
4 files changed, 21 insertions(+), 5 deletions(-)
Index: linux-2.6/arch/x86/include/asm/mach-default/mach_wakecpu.h
===================================================================
--- linux-2.6.orig/arch/x86/include/asm/mach-default/mach_wakecpu.h
+++ linux-2.6/arch/x86/include/asm/mach-default/mach_wakecpu.h
@@ -28,8 +28,7 @@ extern void __inquire_remote_apic(int ap
static inline void inquire_remote_apic(int apicid)
{
- if (apic_verbosity >= APIC_DEBUG)
- __inquire_remote_apic(apicid);
+ __inquire_remote_apic(apicid);
}
#endif /* _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H */
Index: linux-2.6/arch/x86/kernel/es7000_32.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/es7000_32.c
+++ linux-2.6/arch/x86/kernel/es7000_32.c
@@ -181,14 +181,23 @@ static int wakeup_secondary_cpu_via_mip(
return 0;
}
+#endif
+
+static void noop_inquire(void)
+{
+}
static int __init es7000_update_genapic(void)
{
+#ifdef CONFIG_ES7000_CLUSTERED_APIC
genapic->wakeup_cpu = wakeup_secondary_cpu_via_mip;
+#endif
+
+ if (apic_verbosity < APIC_DEBUG)
+ genapic->inquire_remote_apic = noop_inquire;
return 0;
}
-#endif
void __init
setup_unisys(void)
Index: linux-2.6/arch/x86/kernel/setup.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/setup.c
+++ linux-2.6/arch/x86/kernel/setup.c
@@ -584,10 +584,19 @@ static int __init setup_elfcorehdr(char
early_param("elfcorehdr", setup_elfcorehdr);
#endif
+
+#if defined(CONFIG_X86_GENERICARCH) || defined(CONFIG_X86_64)
+static void noop_inquire(int apicid)
+{
+}
+#endif
static int __init default_update_genapic(void)
{
#if defined(CONFIG_X86_GENERICARCH) || defined(CONFIG_X86_64)
genapic->wakeup_cpu = wakeup_secondary_cpu_via_nmi;
+
+ if (apic_verbosity < APIC_DEBUG)
+ genapic->inquire_remote_apic = noop_inquire;
#endif
return 0;
Index: linux-2.6/arch/x86/include/asm/es7000/wakecpu.h
===================================================================
--- linux-2.6.orig/arch/x86/include/asm/es7000/wakecpu.h
+++ linux-2.6/arch/x86/include/asm/es7000/wakecpu.h
@@ -30,8 +30,7 @@ extern void __inquire_remote_apic(int ap
static inline void inquire_remote_apic(int apicid)
{
- if (apic_verbosity >= APIC_DEBUG)
- __inquire_remote_apic(apicid);
+ __inquire_remote_apic(apicid);
}
#endif /* __ASM_MACH_WAKECPU_H */
next prev parent reply other threads:[~2008-11-18 2:50 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-16 8:47 [PATCH] x86: fix wakeup_cpu with numaq/es7000 Yinghai Lu
2008-11-16 11:12 ` [PATCH] x86: fix wakeup_cpu with numaq/es7000 v2 Yinghai Lu
2008-11-17 16:52 ` Ingo Molnar
2008-11-17 17:11 ` Cyrill Gorcunov
2008-11-17 17:35 ` Ingo Molnar
2008-11-17 17:52 ` Cyrill Gorcunov
2008-11-17 17:37 ` Ingo Molnar
2008-11-17 17:38 ` Ingo Molnar
2008-11-17 18:18 ` Yinghai Lu
2008-11-17 17:38 ` Ingo Molnar
2008-11-17 21:06 ` Yinghai Lu
2008-11-17 23:19 ` Yinghai Lu
2008-11-17 23:28 ` Ingo Molnar
2008-11-18 2:49 ` Yinghai Lu [this message]
2008-11-18 2:51 ` Yinghai Lu
2008-11-18 7:43 ` Ingo Molnar
2008-11-18 16:13 ` [PATCH] x86: fix wakeup_cpu with numaq/es7000 v2 - fix v2 Yinghai Lu
2008-11-18 16:14 ` [PATCH] x86: use update_genapic to get rid of ES7000_CLUSTERED_APIC v2 Yinghai Lu
2008-11-18 21:14 ` [PATCH] x86: fix wakeup_cpu with numaq/es7000 v2 - fix v2 Ingo Molnar
2008-11-20 4:50 ` Yinghai Lu
2008-11-20 4:00 ` [PATCH] x86: fix wakeup_cpu with numaq/es7000 v2 Hiroshi Shimamoto
2008-11-20 9:46 ` Ingo Molnar
2008-11-20 18:15 ` Hiroshi Shimamoto
2008-11-17 17:54 ` Yinghai Lu
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=49222D24.5020601@kernel.org \
--to=yinghai@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).