From: Ingo Molnar <mingo@elte.hu>
To: Yinghai Lu <yinghai@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: remove update_apic from x86_quirks
Date: Thu, 26 Feb 2009 12:41:03 +0100 [thread overview]
Message-ID: <20090226114103.GA6651@elte.hu> (raw)
In-Reply-To: <49A650B3.8080902@kernel.org>
* Yinghai Lu <yinghai@kernel.org> wrote:
> Ingo Molnar wrote:
> > except that it doesnt build:
> >
> > arch/x86/kernel/built-in.o:(.data+0x8c08): undefined reference to `wakeup_secondary_cpu_via_init'
> > arch/x86/kernel/built-in.o:(.data+0x8d68): undefined reference to `wakeup_secondary_cpu_via_init'
> > arch/x86/kernel/built-in.o:(.data+0x8ec8): undefined reference to `wakeup_secondary_cpu_via_init'
> > arch/x86/kernel/built-in.o:(.data+0x9038): undefined reference to `wakeup_secondary_cpu_via_init'
> >
>
> .config?
There's no need for a config :)
When introducing a widely used symbol as
wakeup_secondary_cpu_via_init(), the first thing to check is to
make sure it's built in widely enough:
$ git grep wakeup_secondary_cpu_via_init
arch/x86/include/asm/apic.h:extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip);
arch/x86/kernel/apic/apic_flat_64.c: .wakeup_cpu = wakeup_secondary_cpu_via_init,
arch/x86/kernel/apic/apic_flat_64.c: .wakeup_cpu = wakeup_secondary_cpu_via_init,
arch/x86/kernel/apic/bigsmp_32.c: .wakeup_cpu = wakeup_secondary_cpu_via_init,
arch/x86/kernel/apic/es7000_32.c: .wakeup_cpu = wakeup_secondary_cpu_via_init,
arch/x86/kernel/apic/probe_32.c: .wakeup_cpu = wakeup_secondary_cpu_via_init,
arch/x86/kernel/apic/summit_32.c: .wakeup_cpu = wakeup_secondary_cpu_via_init,
arch/x86/kernel/apic/x2apic_cluster.c: .wakeup_cpu = wakeup_secondary_cpu_via_init,
arch/x86/kernel/apic/x2apic_phys.c: .wakeup_cpu = wakeup_secondary_cpu_via_init,
arch/x86/kernel/smpboot.c:wakeup_secondary_cpu_via_init(int phys_apicid, unsigned long start_eip)
as you can see it's defined in arch/x86/kernel/smpboot.c -
which, as its name already tells us, is only built on SMP.
There's other usage though, like
arch/x86/kernel/apic/probe_32.c, which is built on
CONFIG_X86_LOCAL_APIC=y, which can be enabled on !SMP as well.
Since on SMP we are not likely to boot other CPUs via
apic->wakeup_cpu(), i suspect we need a !SMP inline for
wakeup_secondary_cpu_via_init()?
Ingo
prev parent reply other threads:[~2009-02-26 11:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-26 4:50 [PATCH] x86: remove update_apic from x86_quirks Yinghai Lu
2009-02-26 5:32 ` Ingo Molnar
2009-02-26 5:34 ` Ingo Molnar
2009-02-26 5:43 ` Ingo Molnar
2009-02-26 8:20 ` Yinghai Lu
2009-02-26 11:41 ` Ingo Molnar [this message]
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=20090226114103.GA6651@elte.hu \
--to=mingo@elte.hu \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=yinghai@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.