From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] define cpu_logical_id() always
Date: Mon, 21 Jun 2004 20:59:39 +0000 [thread overview]
Message-ID: <200406211459.39151.bjorn.helgaas@hp.com> (raw)
Define cpu_logical_id() even when !SMP. I added uses of this in some
iosapic printk's, which broke the UP build.
=== include/asm-ia64/smp.h 1.17 vs edited ==--- 1.17/include/asm-ia64/smp.h 2004-05-14 20:00:12 -06:00
+++ edited/include/asm-ia64/smp.h 2004-06-21 14:44:12 -06:00
@@ -123,5 +123,9 @@
extern void lock_ipi_calllock(void);
extern void unlock_ipi_calllock(void);
+#else
+
+#define cpu_logical_id(cpuid) 0
+
#endif /* CONFIG_SMP */
#endif /* _ASM_IA64_SMP_H */
=== include/asm-ia64/sn/sn_cpuid.h 1.8 vs edited ==--- 1.8/include/asm-ia64/sn/sn_cpuid.h 2004-02-03 22:39:51 -07:00
+++ edited/include/asm-ia64/sn/sn_cpuid.h 2004-06-21 14:53:37 -06:00
@@ -84,7 +84,6 @@
*/
#ifndef CONFIG_SMP
-#define cpu_logical_id(cpu) 0
#define cpu_physical_id(cpuid) ((ia64_getreg(_IA64_REG_CR_LID) >> 16) & 0xffff)
#endif
next reply other threads:[~2004-06-21 20:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-21 20:59 Bjorn Helgaas [this message]
2004-06-26 0:50 ` [PATCH] define cpu_logical_id() always David Mosberger
2004-06-28 15:46 ` Bjorn Helgaas
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=200406211459.39151.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox