LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 4/5] Always ask the hardware to obtain hardware processor id - ia64
@ 2007-03-01  7:18 Fernando Luis Vázquez Cao
  0 siblings, 0 replies; only message in thread
From: Fernando Luis Vázquez Cao @ 2007-03-01  7:18 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: fastboot, ebiederm, ak, akpm, judith

Always ask the hardware to determine the hardware processor id in both UP and SMP kernels.

Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
---

diff -urNp linux-2.6.21-rc2/include/asm-ia64/smp.h linux-2.6.21-rc2-hwcpuid/include/asm-ia64/smp.h
--- linux-2.6.21-rc2/include/asm-ia64/smp.h	2007-02-05 03:44:54.000000000 +0900
+++ linux-2.6.21-rc2-hwcpuid/include/asm-ia64/smp.h	2007-03-07 13:03:48.000000000 +0900
@@ -38,6 +38,8 @@ ia64_get_lid (void)
 	return lid.f.id << 8 | lid.f.eid;
 }
 
+#define hard_smp_processor_id()		ia64_get_lid()
+
 #ifdef CONFIG_SMP
 
 #define XTP_OFFSET		0x1e0008
@@ -110,8 +112,6 @@ max_xtp (void)
 		writeb(0x0f, ipi_base_addr + XTP_OFFSET); /* Set XTP to max */
 }
 
-#define hard_smp_processor_id()		ia64_get_lid()
-
 /* Upping and downing of CPUs */
 extern int __cpu_disable (void);
 extern void __cpu_die (unsigned int cpu);
@@ -128,7 +128,7 @@ extern void unlock_ipi_calllock(void);
 extern void identify_siblings (struct cpuinfo_ia64 *);
 extern int is_multithreading_enabled(void);
 
-#else
+#else /* CONFIG_SMP */
 
 #define cpu_logical_id(i)		0
 #define cpu_physical_id(i)		ia64_get_lid()



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-01  7:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-01  7:18 [PATCH 4/5] Always ask the hardware to obtain hardware processor id - ia64 Fernando Luis Vázquez Cao

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).