From: "Seth, Rohit" <rohit.seth@intel.com>
To: linux-ia64@vger.kernel.org
Subject: RE: [Linux-ia64] Re: volatile unsigned long cpu_online_map vs uns
Date: Tue, 26 Jun 2001 17:11:18 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005775@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005772@msgid-missing>
cpu_online_map gets used and defined only for SMP configurations. We will
need to remove the definition of cpu_online_map from setup.c as it is
defined in smpboot.c. For setup.c, cpu_online_map is done extern in smp.h
(...change to volatile there..)
Below is the patch for setup.c
--- kernel/setup.c Fri Jun 1 15:15:53 2001
+++ /tmp/setup.c Tue Jun 26 09:46:40 2001
@@ -60,10 +60,6 @@
/* This tells _start which CPU is booting. */
int cpu_now_booting;
-#ifdef CONFIG_SMP
-volatile unsigned long cpu_online_map;
-#endif
-
unsigned long ia64_iobase; /* virtual address for I/O accesses */
#define COMMAND_LINE_SIZE 512
-----Original Message-----
From: Andreas Schwab [mailto:schwab@suse.de]
Sent: Tuesday, June 26, 2001 9:57 AM
To: David Mosberger
Cc: linux-ia64@linuxia64.org
Subject: [Linux-ia64] Re: volatile unsigned long cpu_online_map vs
unsigned long cpu_online_map
Bill Nottingham <notting@redhat.com> writes:
|> David Mosberger (davidm@hpl.hp.com) said:
|> > Andreas> include/asm-ia64/smp.h has 'extern unsigned long
|> > Andreas> cpu_online_map', but arch/ia64/kernel/setup.c and
|> > Andreas> arch/ia64/kernel/smpboot.c have 'volatile unsigned long
|> > Andreas> cpu_online_map'. Which one is correct?
|> >
|> > It should be volatile.
|>
|> Also, shoudn't it be extern in at least one of setup.c/smpboot.c?
No. The definition in setup.c is guarded by CONFIG_SMP, and smpboot.c is
not use on non-SMP.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
_______________________________________________
Linux-IA64 mailing list
Linux-IA64@linuxia64.org
http://lists.linuxia64.org/lists/listinfo/linux-ia64
next prev parent reply other threads:[~2001-06-26 17:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-26 16:24 [Linux-ia64] Re: volatile unsigned long cpu_online_map vs unsigned long cpu_online_map Bill Nottingham
2001-06-26 16:56 ` Andreas Schwab
2001-06-26 17:04 ` Bill Nottingham
2001-06-26 17:11 ` Seth, Rohit [this message]
2001-06-26 17:15 ` Andreas Schwab
2001-06-26 17:30 ` David Mosberger
2001-06-26 18:54 ` Andreas Schwab
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=marc-linux-ia64-105590693005775@msgid-missing \
--to=rohit.seth@intel.com \
--cc=linux-ia64@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.