From: James Bottomley <James.Bottomley@SteelEye.com>
To: "Fernando Luis Vázquez Cao" <fernando@oss.ntt.co.jp>
Cc: vgoyal@in.ibm.com, "Eric W. Biederman" <ebiederm@xmission.com>,
akpm@osdl.org, ak@suse.de, linux-kernel@vger.kernel.org,
fastboot@lists.osdl.org
Subject: Re: [PATCH 1/3] stack overflow safe kdump (2.6.18-rc1-i386) - safe_smp_processor_id
Date: Mon, 10 Jul 2006 09:16:28 -0500 [thread overview]
Message-ID: <1152540988.7275.7.camel@mulgrave.il.steeleye.com> (raw)
In-Reply-To: <1152517852.2120.107.camel@localhost.localdomain>
On Mon, 2006-07-10 at 16:50 +0900, Fernando Luis Vázquez Cao wrote:
> diff -urNp linux-2.6.18-rc1/include/asm-i386/smp.h
> linux-2.6.18-rc1-sof/include/asm-i386/smp.h
> --- linux-2.6.18-rc1/include/asm-i386/smp.h 2006-07-10
> 11:00:05.000000000 +0900
> +++ linux-2.6.18-rc1-sof/include/asm-i386/smp.h 2006-07-10
> 15:34:26.000000000 +0900
> @@ -89,12 +89,20 @@ static __inline int logical_smp_processo
>
> #endif
>
> +#ifdef CONFIG_X86_VOYAGER
> +extern int hard_smp_processor_id(void);
> +#define safe_smp_processor_id() hard_smp_processor_id()
> +#else
> +extern int safe_smp_processor_id(void);
> +#endif
> +
Argh, no, don't do this. The Subarchitecture specific code should never
appear in the standard include directory (that was about the whole
point). The extern for hard_smp_processor_id should just be global,
since it's common to all architectures, and the voyager specific define
should be in a voyager specific header file.
As an aside, it shows the problems x86 got itself into with it's
inconsistent direction of physical vs logical CPUs. The idea was that
smp_processor_id() and hard_smp_processor_id() were supposed to return
the same thing, only hard_... went to the actual SMP registers to get
it.
James
next prev parent reply other threads:[~2006-07-10 14:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-10 7:50 Fernando Luis Vázquez Cao
2006-07-10 8:27 ` [Fastboot] " Keith Owens
2006-07-10 10:15 ` Fernando Luis Vázquez Cao
2006-07-10 11:37 ` Eric W. Biederman
2006-07-11 4:21 ` Fernando Luis Vázquez Cao
2006-07-11 4:44 ` Fernando Luis Vázquez Cao
2006-07-11 4:55 ` Keith Owens
2006-07-11 6:15 ` Fernando Luis Vázquez Cao
2006-07-11 6:25 ` Keith Owens
2006-07-10 12:04 ` Keith Owens
2006-07-11 6:40 ` Fernando Luis Vázquez Cao
2006-07-10 14:16 ` James Bottomley [this message]
2006-07-10 18:20 ` Eric W. Biederman
2006-07-10 20:58 ` James Bottomley
2006-07-11 3:42 ` Eric W. Biederman
2006-07-11 12:36 ` James Bottomley
2006-07-11 19:41 ` Eric W. Biederman
2006-07-11 6:21 ` [Fastboot] " Fernando Luis Vázquez Cao
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=1152540988.7275.7.camel@mulgrave.il.steeleye.com \
--to=james.bottomley@steeleye.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=ebiederm@xmission.com \
--cc=fastboot@lists.osdl.org \
--cc=fernando@oss.ntt.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=vgoyal@in.ibm.com \
/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
all inboxes | Powered by JetHome®