All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] (1/7) create generalised apic_to_node mapping
@ 2003-01-07 20:17 Martin J. Bligh
  0 siblings, 0 replies; only message in thread
From: Martin J. Bligh @ 2003-01-07 20:17 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

diff -urpN -X /home/fletch/.diff.exclude 00-virgin/include/asm-i386/mach-default/mach_apic.h 01-apicid_to_node/include/asm-i386/mach-default/mach_apic.h
--- 00-virgin/include/asm-i386/mach-default/mach_apic.h	Thu Jan  2 22:05:15 2003
+++ 01-apicid_to_node/include/asm-i386/mach-default/mach_apic.h	Tue Jan  7 09:24:35 2003
@@ -53,6 +53,11 @@ static inline int multi_timer_check(int
 	return 0;
 }

+static inline int apicid_to_node(int logical_apicid)
+{
+	return 0;
+}
+
 static inline int cpu_present_to_apicid(int mps_cpu)
 {
 	return  mps_cpu;
diff -urpN -X /home/fletch/.diff.exclude 00-virgin/include/asm-i386/mach-numaq/mach_apic.h 01-apicid_to_node/include/asm-i386/mach-numaq/mach_apic.h
--- 00-virgin/include/asm-i386/mach-numaq/mach_apic.h	Thu Jan  2 22:05:15 2003
+++ 01-apicid_to_node/include/asm-i386/mach-numaq/mach_apic.h	Tue Jan  7 09:24:35 2003
@@ -47,14 +47,14 @@ static inline int generate_logical_apici
 	return ( (quad << 4) + (phys_apicid ? phys_apicid << 1 : 1) );
 }

-static inline int apicid_to_quad(int logical_apicid)
+static inline int apicid_to_node(int logical_apicid)
 {
 	return (logical_apicid >> 4);
 }

 static inline unsigned long apicid_to_cpu_present(int logical_apicid)
 {
-	return ( (logical_apicid&0xf) << (4*apicid_to_quad(logical_apicid)) );
+	return ( (logical_apicid&0xf) << (4*apicid_to_node(logical_apicid)) );
 }

 static inline int mpc_apic_id(struct mpc_config_processor *m, int quad)
diff -urpN -X /home/fletch/.diff.exclude 00-virgin/include/asm-i386/mach-summit/mach_apic.h 01-apicid_to_node/include/asm-i386/mach-summit/mach_apic.h
--- 00-virgin/include/asm-i386/mach-summit/mach_apic.h	Thu Jan  2 22:05:15 2003
+++ 01-apicid_to_node/include/asm-i386/mach-summit/mach_apic.h	Tue Jan  7 09:24:35 2003
@@ -32,6 +32,11 @@ static inline void clustered_apic_check(
 		(x86_summit ? "Summit" : "Flat"), nr_ioapics);
 }

+static inline int apicid_to_node(int logical_apicid)
+{
+	return (logical_apicid >> 5);          /* 2 clusterids per CEC */
+}
+
 static inline int cpu_present_to_apicid(int mps_cpu)
 {
 	if (x86_summit)


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

only message in thread, other threads:[~2003-01-07 20:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-07 20:17 [PATCH] (1/7) create generalised apic_to_node mapping Martin J. Bligh

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.