Skip to contentSkip to conversation

x86: add setup_ioapic_ids for numaq in x86_quirks

PATCH In review Yinghai Lu 2 participants 6 messages Jul 25, 2008 – Jul 26, 2008 3 messages not in the archive x86

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: add setup_ioapic_ids for numaq in x86_quirks

---
 arch/x86/kernel/io_apic_32.c |    5 ++---
 arch/x86/kernel/numaq_32.c   |    7 +++++++
 include/asm-x86/setup.h      |    1 +
 3 files changed, 10 insertions(+), 3 deletions(-)
arch/x86/kernel/io_apic_32.c +2 -3
Index: linux-2.6/arch/x86/kernel/io_apic_32.c
===================================================================
@@ -46,6 +46,7 @@
 #include <asm/nmi.h>
 #include <asm/msidef.h>
 #include <asm/hypertransport.h>
+#include <asm/setup.h>
 
 #include <mach_apic.h>
 #include <mach_apicdef.h>
@@ -1739,10 +1740,8 @@ static void __init setup_ioapic_ids_from
 	unsigned char old_id;
 	unsigned long flags;
 
-#ifdef CONFIG_X86_NUMAQ
-	if (found_numaq)
+	if (x86_quirks->setup_ioapic_ids && x86_quirks->setup_ioapic_ids())
 		return;
-#endif
 
 	/*
 	 * Don't check I/O APIC IDs for xAPIC systems.  They have
arch/x86/kernel/numaq_32.c +7 -0
Index: linux-2.6/arch/x86/kernel/numaq_32.c
===================================================================
@@ -229,6 +229,12 @@ static void __init smp_read_mpc_oem(stru
 	}
 }
 
+static int __init numaq_setup_ioapic_ids(void)
+{
+	/* so can skip it */
+	return 1;
+}
+
 static struct x86_quirks numaq_x86_quirks __initdata = {
 	.arch_pre_time_init	= numaq_pre_time_init,
 	.arch_time_init		= NULL,
@@ -243,6 +249,7 @@ static struct x86_quirks numaq_x86_quirk
 	.mpc_oem_bus_info	= mpc_oem_bus_info,
 	.mpc_oem_pci_bus	= mpc_oem_pci_bus,
 	.smp_read_mpc_oem	= smp_read_mpc_oem,
+	.setup_ioapic_ids	= numaq_setup_ioapic_ids,
 };
 
 void numaq_mps_oem_check(struct mp_config_table *mpc, char *oem,
include/asm-x86/setup.h +1 -0
Index: linux-2.6/include/asm-x86/setup.h
===================================================================
@@ -38,6 +38,7 @@ struct x86_quirks {
 	void (*mpc_oem_pci_bus)(struct mpc_config_bus *m);
 	void (*smp_read_mpc_oem)(struct mp_config_oemtable *oemtable,
                                     unsigned short oemsize);
+	int (*setup_ioapic_ids)(void);
 };
 
 extern struct x86_quirks *x86_quirks;

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#3 lore raw

PATCH 1/1 x86: mach-bigsmp to bigsmp

---
 arch/x86/mach-generic/bigsmp.c             |    6 -
 include/asm-x86/bigsmp/apic.h              |  144 +++++++++++++++++++++++++++++
 include/asm-x86/bigsmp/apicdef.h           |   13 ++
 include/asm-x86/bigsmp/ipi.h               |   25 +++++
 include/asm-x86/mach-bigsmp/mach_apic.h    |  144 -----------------------------
 include/asm-x86/mach-bigsmp/mach_apicdef.h |   13 --
 include/asm-x86/mach-bigsmp/mach_ipi.h     |   25 -----
 7 files changed, 185 insertions(+), 185 deletions(-)
arch/x86/mach-generic/bigsmp.c +3 -3
Index: linux-2.6/arch/x86/mach-generic/bigsmp.c
===================================================================
@@ -12,10 +12,10 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/dmi.h>
-#include <asm/mach-bigsmp/mach_apicdef.h>
+#include <asm/bigsmp/apicdef.h>
 #include <linux/smp.h>
-#include <asm/mach-bigsmp/mach_apic.h>
-#include <asm/mach-bigsmp/mach_ipi.h>
+#include <asm/bigsmp/apic.h>
+#include <asm/bigsmp/ipi.h>
 #include <asm/mach-default/mach_mpparse.h>
 
 static int dmi_bigsmp; /* can be set by dmi scanners */
include/asm-x86/bigsmp/apic.h new file +144 -0

144 lines not on this page · raw message

include/asm-x86/bigsmp/apicdef.h new file +13 -0
Index: linux-2.6/include/asm-x86/bigsmp/apicdef.h
===================================================================
@@ -0,0 +1,13 @@
+#ifndef __ASM_MACH_APICDEF_H
+#define __ASM_MACH_APICDEF_H
+
+#define		APIC_ID_MASK		(0xFF<<24)
+
+static inline unsigned get_apic_id(unsigned long x)
+{
+	return (((x)>>24)&0xFF);
+}
+
+#define		GET_APIC_ID(x)	get_apic_id(x)
+
+#endif
include/asm-x86/bigsmp/ipi.h new file +25 -0
Index: linux-2.6/include/asm-x86/bigsmp/ipi.h
===================================================================
@@ -0,0 +1,25 @@
+#ifndef __ASM_MACH_IPI_H
+#define __ASM_MACH_IPI_H
+
+void send_IPI_mask_sequence(cpumask_t mask, int vector);
+
+static inline void send_IPI_mask(cpumask_t mask, int vector)
+{
+	send_IPI_mask_sequence(mask, vector);
+}
+
+static inline void send_IPI_allbutself(int vector)
+{
+	cpumask_t mask = cpu_online_map;
+	cpu_clear(smp_processor_id(), mask);
+
+	if (!cpus_empty(mask))
+		send_IPI_mask(mask, vector);
+}
+
+static inline void send_IPI_all(int vector)
+{
+	send_IPI_mask(cpu_online_map, vector);
+}
+
+#endif /* __ASM_MACH_IPI_H */
include/asm-x86/mach-bigsmp/mach_apic.h deleted +0 -144

144 lines not on this page · raw message

include/asm-x86/mach-bigsmp/mach_apicdef.h deleted +0 -13
Index: linux-2.6/include/asm-x86/mach-bigsmp/mach_apicdef.h
===================================================================
@@ -1,13 +0,0 @@
-#ifndef __ASM_MACH_APICDEF_H
-#define __ASM_MACH_APICDEF_H
-
-#define		APIC_ID_MASK		(0xFF<<24)
-
-static inline unsigned get_apic_id(unsigned long x) 
-{ 
-	return (((x)>>24)&0xFF);
-} 
-
-#define		GET_APIC_ID(x)	get_apic_id(x)
-
-#endif
include/asm-x86/mach-bigsmp/mach_ipi.h deleted +0 -25
Index: linux-2.6/include/asm-x86/mach-bigsmp/mach_ipi.h
===================================================================
@@ -1,25 +0,0 @@
-#ifndef __ASM_MACH_IPI_H
-#define __ASM_MACH_IPI_H
-
-void send_IPI_mask_sequence(cpumask_t mask, int vector);
-
-static inline void send_IPI_mask(cpumask_t mask, int vector)
-{
-	send_IPI_mask_sequence(mask, vector);
-}
-
-static inline void send_IPI_allbutself(int vector)
-{
-	cpumask_t mask = cpu_online_map;
-	cpu_clear(smp_processor_id(), mask);
-
-	if (!cpus_empty(mask))
-		send_IPI_mask(mask, vector);
-}
-
-static inline void send_IPI_all(int vector)
-{
-	send_IPI_mask(cpu_online_map, vector);
-}
-
-#endif /* __ASM_MACH_IPI_H */
author
#4 lore raw

PATCH 1/1 x86: mach_es7000 to es7000

In reply to a message not in the archive
---
 arch/x86/es7000/Makefile                   |    5 
 arch/x86/es7000/es7000.h                   |  114 ++++++++++++
 arch/x86/es7000/es7000plat.c               |  262 +++++++++++++++++++++++++++++
 arch/x86/mach-es7000/Makefile              |    5 
 arch/x86/mach-es7000/es7000.h              |  114 ------------
 arch/x86/mach-es7000/es7000plat.c          |  262 -----------------------------
 arch/x86/mach-generic/Makefile             |    2 
 include/asm-x86/es7000/apic.h              |  194 +++++++++++++++++++++
 include/asm-x86/es7000/apicdef.h           |   13 +
 include/asm-x86/es7000/ipi.h               |   24 ++
 include/asm-x86/es7000/mpparse.h           |   29 +++
 include/asm-x86/es7000/wakecpu.h           |   59 ++++++
 include/asm-x86/mach-es7000/mach_apic.h    |  194 ---------------------
 include/asm-x86/mach-es7000/mach_apicdef.h |   13 -
 include/asm-x86/mach-es7000/mach_ipi.h     |   24 --
 include/asm-x86/mach-es7000/mach_mpparse.h |   29 ---
 include/asm-x86/mach-es7000/mach_wakecpu.h |   59 ------
 17 files changed, 701 insertions(+), 701 deletions(-)
arch/x86/es7000/Makefile new file +5 -0
Index: linux-2.6/arch/x86/es7000/Makefile
===================================================================
@@ -0,0 +1,5 @@
+#
+# Makefile for the linux kernel.
+#
+
+obj-$(CONFIG_X86_ES7000)	:= es7000plat.o
arch/x86/es7000/es7000.h new file +114 -0

114 lines not on this page · raw message

arch/x86/es7000/es7000plat.c new file +262 -0

262 lines not on this page · raw message

arch/x86/mach-es7000/Makefile deleted +0 -5
Index: linux-2.6/arch/x86/mach-es7000/Makefile
===================================================================
@@ -1,5 +0,0 @@
-#
-# Makefile for the linux kernel.
-#
-
-obj-$(CONFIG_X86_ES7000)	:= es7000plat.o
arch/x86/mach-es7000/es7000.h deleted +0 -114

114 lines not on this page · raw message

arch/x86/mach-es7000/es7000plat.c deleted +0 -262

262 lines not on this page · raw message

arch/x86/mach-generic/Makefile +1 -1
Index: linux-2.6/arch/x86/mach-generic/Makefile
===================================================================
@@ -9,4 +9,4 @@ obj-$(CONFIG_X86_NUMAQ)		+= numaq.o
 obj-$(CONFIG_X86_SUMMIT)	+= summit.o
 obj-$(CONFIG_X86_BIGSMP)	+= bigsmp.o
 obj-$(CONFIG_X86_ES7000)	+= es7000.o
-obj-$(CONFIG_X86_ES7000)	+= ../../x86/mach-es7000/
+obj-$(CONFIG_X86_ES7000)	+= ../../x86/es7000/
include/asm-x86/es7000/apic.h new file +194 -0

194 lines not on this page · raw message

include/asm-x86/es7000/apicdef.h new file +13 -0
Index: linux-2.6/include/asm-x86/es7000/apicdef.h
===================================================================
@@ -0,0 +1,13 @@
+#ifndef __ASM_ES7000_APICDEF_H
+#define __ASM_ES7000_APICDEF_H
+
+#define		APIC_ID_MASK		(0xFF<<24)
+
+static inline unsigned get_apic_id(unsigned long x)
+{
+	return (((x)>>24)&0xFF);
+}
+
+#define		GET_APIC_ID(x)	get_apic_id(x)
+
+#endif
include/asm-x86/es7000/ipi.h new file +24 -0
Index: linux-2.6/include/asm-x86/es7000/ipi.h
===================================================================
@@ -0,0 +1,24 @@
+#ifndef __ASM_ES7000_IPI_H
+#define __ASM_ES7000_IPI_H
+
+void send_IPI_mask_sequence(cpumask_t mask, int vector);
+
+static inline void send_IPI_mask(cpumask_t mask, int vector)
+{
+	send_IPI_mask_sequence(mask, vector);
+}
+
+static inline void send_IPI_allbutself(int vector)
+{
+	cpumask_t mask = cpu_online_map;
+	cpu_clear(smp_processor_id(), mask);
+	if (!cpus_empty(mask))
+		send_IPI_mask(mask, vector);
+}
+
+static inline void send_IPI_all(int vector)
+{
+	send_IPI_mask(cpu_online_map, vector);
+}
+
+#endif /* __ASM_ES7000_IPI_H */
include/asm-x86/es7000/mpparse.h new file +29 -0
Index: linux-2.6/include/asm-x86/es7000/mpparse.h
===================================================================
@@ -0,0 +1,29 @@
+#ifndef __ASM_ES7000_MPPARSE_H
+#define __ASM_ES7000_MPPARSE_H
+
+#include <linux/acpi.h>
+
+extern int parse_unisys_oem (char *oemptr);
+extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
+extern void setup_unisys(void);
+
+#ifndef CONFIG_X86_GENERICARCH
+extern int acpi_madt_oem_check(char *oem_id, char *oem_table_id);
+extern int mps_oem_check(struct mp_config_table *mpc, char *oem,
+				char *productid);
+#endif
+
+#ifdef CONFIG_ACPI
+
+static inline int es7000_check_dsdt(void)
+{
+	struct acpi_table_header header;
+
+	if (ACPI_SUCCESS(acpi_get_table_header(ACPI_SIG_DSDT, 0, &header)) &&
+	    !strncmp(header.oem_id, "UNISYS", 6))
+		return 1;
+	return 0;
+}
+#endif
+
+#endif /* __ASM_MACH_MPPARSE_H */
include/asm-x86/es7000/wakecpu.h new file +59 -0

59 lines not on this page · raw message

include/asm-x86/mach-es7000/mach_apic.h deleted +0 -194

194 lines not on this page · raw message

include/asm-x86/mach-es7000/mach_apicdef.h deleted +0 -13
Index: linux-2.6/include/asm-x86/mach-es7000/mach_apicdef.h
===================================================================
@@ -1,13 +0,0 @@
-#ifndef __ASM_MACH_APICDEF_H
-#define __ASM_MACH_APICDEF_H
-
-#define		APIC_ID_MASK		(0xFF<<24)
-
-static inline unsigned get_apic_id(unsigned long x) 
-{ 
-	return (((x)>>24)&0xFF);
-} 
-
-#define		GET_APIC_ID(x)	get_apic_id(x)
-
-#endif
include/asm-x86/mach-es7000/mach_ipi.h deleted +0 -24
Index: linux-2.6/include/asm-x86/mach-es7000/mach_ipi.h
===================================================================
@@ -1,24 +0,0 @@
-#ifndef __ASM_MACH_IPI_H
-#define __ASM_MACH_IPI_H
-
-void send_IPI_mask_sequence(cpumask_t mask, int vector);
-
-static inline void send_IPI_mask(cpumask_t mask, int vector)
-{
-	send_IPI_mask_sequence(mask, vector);
-}
-
-static inline void send_IPI_allbutself(int vector)
-{
-	cpumask_t mask = cpu_online_map;
-	cpu_clear(smp_processor_id(), mask);
-	if (!cpus_empty(mask))
-		send_IPI_mask(mask, vector);
-}
-
-static inline void send_IPI_all(int vector)
-{
-	send_IPI_mask(cpu_online_map, vector);
-}
-
-#endif /* __ASM_MACH_IPI_H */
include/asm-x86/mach-es7000/mach_mpparse.h deleted +0 -29
Index: linux-2.6/include/asm-x86/mach-es7000/mach_mpparse.h
===================================================================
@@ -1,29 +0,0 @@
-#ifndef __ASM_MACH_MPPARSE_H
-#define __ASM_MACH_MPPARSE_H
-
-#include <linux/acpi.h>
-
-extern int parse_unisys_oem (char *oemptr);
-extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
-extern void setup_unisys(void);
-
-#ifndef CONFIG_X86_GENERICARCH
-extern int acpi_madt_oem_check(char *oem_id, char *oem_table_id);
-extern int mps_oem_check(struct mp_config_table *mpc, char *oem,
-				char *productid);
-#endif
-
-#ifdef CONFIG_ACPI
-
-static inline int es7000_check_dsdt(void)
-{
-	struct acpi_table_header header;
-
-	if (ACPI_SUCCESS(acpi_get_table_header(ACPI_SIG_DSDT, 0, &header)) &&
-	    !strncmp(header.oem_id, "UNISYS", 6))
-		return 1;
-	return 0;
-}
-#endif
-
-#endif /* __ASM_MACH_MPPARSE_H */
include/asm-x86/mach-es7000/mach_wakecpu.h deleted +0 -59

59 lines not on this page · raw message

arch/x86/mach-generic/es7000.c +5 -5
index 9b30547..520cca0 100644
@@ -11,12 +11,12 @@
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/init.h>
-#include <asm/mach-es7000/mach_apicdef.h>
+#include <asm/es7000/apicdef.h>
 #include <linux/smp.h>
-#include <asm/mach-es7000/mach_apic.h>
-#include <asm/mach-es7000/mach_ipi.h>
-#include <asm/mach-es7000/mach_mpparse.h>
-#include <asm/mach-es7000/mach_wakecpu.h>
+#include <asm/es7000/apic.h>
+#include <asm/es7000/ipi.h>
+#include <asm/es7000/mpparse.h>
+#include <asm/es7000/wakecpu.h>
 
 static int probe_es7000(void)
 {

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#6 lore raw

PATCH 1/1 x86: mach_summit to summit

---
 arch/x86/kernel/summit_32.c                      |    2 
 arch/x86/mach-generic/summit.c                   |    8 
 include/asm-x86/mach-summit/irq_vectors_limits.h |   14 -
 include/asm-x86/mach-summit/mach_apic.h          |  185 -----------------------
 include/asm-x86/mach-summit/mach_apicdef.h       |   13 -
 include/asm-x86/mach-summit/mach_ipi.h           |   25 ---
 include/asm-x86/mach-summit/mach_mpparse.h       |  110 -------------
 include/asm-x86/summit/apic.h                    |  185 +++++++++++++++++++++++
 include/asm-x86/summit/apicdef.h                 |   13 +
 include/asm-x86/summit/ipi.h                     |   25 +++
 include/asm-x86/summit/irq_vectors_limits.h      |   14 +
 include/asm-x86/summit/mpparse.h                 |  109 +++++++++++++
 12 files changed, 351 insertions(+), 352 deletions(-)
arch/x86/kernel/summit_32.c +1 -1
Index: linux-2.6/arch/x86/kernel/summit_32.c
===================================================================
@@ -30,7 +30,7 @@
 #include <linux/init.h>
 #include <asm/io.h>
 #include <asm/bios_ebda.h>
-#include <asm/mach-summit/mach_mpparse.h>
+#include <asm/summit/mpparse.h>
 
 static struct rio_table_hdr *rio_table_hdr __initdata;
 static struct scal_detail   *scal_devs[MAX_NUMNODES] __initdata;
arch/x86/mach-generic/summit.c +4 -4
Index: linux-2.6/arch/x86/mach-generic/summit.c
===================================================================
@@ -11,11 +11,11 @@
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/init.h>
-#include <asm/mach-summit/mach_apicdef.h>
+#include <asm/summit/apicdef.h>
 #include <linux/smp.h>
-#include <asm/mach-summit/mach_apic.h>
-#include <asm/mach-summit/mach_ipi.h>
-#include <asm/mach-summit/mach_mpparse.h>
+#include <asm/summit/apic.h>
+#include <asm/summit/ipi.h>
+#include <asm/summit/mpparse.h>
 
 static int probe_summit(void)
 {
include/asm-x86/mach-summit/irq_vectors_limits.h deleted +0 -14
Index: linux-2.6/include/asm-x86/mach-summit/irq_vectors_limits.h
===================================================================
@@ -1,14 +0,0 @@
-#ifndef _ASM_IRQ_VECTORS_LIMITS_H
-#define _ASM_IRQ_VECTORS_LIMITS_H
-
-/*
- * For Summit or generic (i.e. installer) kernels, we have lots of I/O APICs,
- * even with uni-proc kernels, so use a big array.
- *
- * This value should be the same in both the generic and summit subarches.
- * Change one, change 'em both.
- */
-#define NR_IRQS	224
-#define NR_IRQ_VECTORS	1024
-
-#endif /* _ASM_IRQ_VECTORS_LIMITS_H */
include/asm-x86/mach-summit/mach_apic.h deleted +0 -185

185 lines not on this page · raw message

include/asm-x86/mach-summit/mach_apicdef.h deleted +0 -13
Index: linux-2.6/include/asm-x86/mach-summit/mach_apicdef.h
===================================================================
@@ -1,13 +0,0 @@
-#ifndef __ASM_MACH_APICDEF_H
-#define __ASM_MACH_APICDEF_H
-
-#define		APIC_ID_MASK		(0xFF<<24)
-
-static inline unsigned get_apic_id(unsigned long x) 
-{ 
-	return (((x)>>24)&0xFF);
-} 
-
-#define		GET_APIC_ID(x)	get_apic_id(x)
-
-#endif
include/asm-x86/mach-summit/mach_ipi.h deleted +0 -25
Index: linux-2.6/include/asm-x86/mach-summit/mach_ipi.h
===================================================================
@@ -1,25 +0,0 @@
-#ifndef __ASM_MACH_IPI_H
-#define __ASM_MACH_IPI_H
-
-void send_IPI_mask_sequence(cpumask_t mask, int vector);
-
-static inline void send_IPI_mask(cpumask_t mask, int vector)
-{
-	send_IPI_mask_sequence(mask, vector);
-}
-
-static inline void send_IPI_allbutself(int vector)
-{
-	cpumask_t mask = cpu_online_map;
-	cpu_clear(smp_processor_id(), mask);
-
-	if (!cpus_empty(mask))
-		send_IPI_mask(mask, vector);
-}
-
-static inline void send_IPI_all(int vector)
-{
-	send_IPI_mask(cpu_online_map, vector);
-}
-
-#endif /* __ASM_MACH_IPI_H */
include/asm-x86/mach-summit/mach_mpparse.h deleted +0 -110

110 lines not on this page · raw message

include/asm-x86/summit/apic.h new file +185 -0

185 lines not on this page · raw message

include/asm-x86/summit/apicdef.h new file +13 -0
Index: linux-2.6/include/asm-x86/summit/apicdef.h
===================================================================
@@ -0,0 +1,13 @@
+#ifndef __ASM_SUMMIT_APICDEF_H
+#define __ASM_SUMMIT_APICDEF_H
+
+#define		APIC_ID_MASK		(0xFF<<24)
+
+static inline unsigned get_apic_id(unsigned long x)
+{
+	return (x>>24)&0xFF;
+}
+
+#define		GET_APIC_ID(x)	get_apic_id(x)
+
+#endif
include/asm-x86/summit/ipi.h new file +25 -0
Index: linux-2.6/include/asm-x86/summit/ipi.h
===================================================================
@@ -0,0 +1,25 @@
+#ifndef __ASM_SUMMIT_IPI_H
+#define __ASM_SUMMIT_IPI_H
+
+void send_IPI_mask_sequence(cpumask_t mask, int vector);
+
+static inline void send_IPI_mask(cpumask_t mask, int vector)
+{
+	send_IPI_mask_sequence(mask, vector);
+}
+
+static inline void send_IPI_allbutself(int vector)
+{
+	cpumask_t mask = cpu_online_map;
+	cpu_clear(smp_processor_id(), mask);
+
+	if (!cpus_empty(mask))
+		send_IPI_mask(mask, vector);
+}
+
+static inline void send_IPI_all(int vector)
+{
+	send_IPI_mask(cpu_online_map, vector);
+}
+
+#endif /* __ASM_SUMMIT_IPI_H */
include/asm-x86/summit/irq_vectors_limits.h new file +14 -0
Index: linux-2.6/include/asm-x86/summit/irq_vectors_limits.h
===================================================================
@@ -0,0 +1,14 @@
+#ifndef _ASM_IRQ_VECTORS_LIMITS_H
+#define _ASM_IRQ_VECTORS_LIMITS_H
+
+/*
+ * For Summit or generic (i.e. installer) kernels, we have lots of I/O APICs,
+ * even with uni-proc kernels, so use a big array.
+ *
+ * This value should be the same in both the generic and summit subarches.
+ * Change one, change 'em both.
+ */
+#define NR_IRQS	224
+#define NR_IRQ_VECTORS	1024
+
+#endif /* _ASM_IRQ_VECTORS_LIMITS_H */
include/asm-x86/summit/mpparse.h new file +109 -0

109 lines not on this page · raw message

author
#7 lore raw

PATCH 1/1 x86: mach-numaq to numaq

In reply to Yinghai Lu
---
 arch/x86/mach-generic/numaq.c             |   10 +-
 include/asm-x86/mach-numaq/mach_apic.h    |  138 ------------------------------
 include/asm-x86/mach-numaq/mach_apicdef.h |   14 ---
 include/asm-x86/mach-numaq/mach_ipi.h     |   25 -----
 include/asm-x86/mach-numaq/mach_mpparse.h |    7 -
 include/asm-x86/mach-numaq/mach_wakecpu.h |   43 ---------
 include/asm-x86/numaq/apic.h              |  138 ++++++++++++++++++++++++++++++
 include/asm-x86/numaq/apicdef.h           |   14 +++
 include/asm-x86/numaq/ipi.h               |   25 +++++
 include/asm-x86/numaq/mpparse.h           |    7 +
 include/asm-x86/numaq/wakecpu.h           |   43 +++++++++
 11 files changed, 232 insertions(+), 232 deletions(-)
arch/x86/mach-generic/numaq.c +5 -5
Index: linux-2.6/arch/x86/mach-generic/numaq.c
===================================================================
@@ -11,12 +11,12 @@
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/init.h>
-#include <asm/mach-numaq/mach_apicdef.h>
+#include <asm/numaq/apicdef.h>
 #include <linux/smp.h>
-#include <asm/mach-numaq/mach_apic.h>
-#include <asm/mach-numaq/mach_ipi.h>
-#include <asm/mach-numaq/mach_mpparse.h>
-#include <asm/mach-numaq/mach_wakecpu.h>
+#include <asm/numaq/apic.h>
+#include <asm/numaq/ipi.h>
+#include <asm/numaq/mpparse.h>
+#include <asm/numaq/wakecpu.h>
 #include <asm/numaq.h>
 
 static int mps_oem_check(struct mp_config_table *mpc, char *oem,
include/asm-x86/mach-numaq/mach_apic.h deleted +0 -138

138 lines not on this page · raw message

include/asm-x86/mach-numaq/mach_apicdef.h deleted +0 -14
Index: linux-2.6/include/asm-x86/mach-numaq/mach_apicdef.h
===================================================================
@@ -1,14 +0,0 @@
-#ifndef __ASM_MACH_APICDEF_H
-#define __ASM_MACH_APICDEF_H
-
-
-#define APIC_ID_MASK (0xF<<24)
-
-static inline unsigned get_apic_id(unsigned long x)
-{
-	        return (((x)>>24)&0x0F);
-}
-
-#define         GET_APIC_ID(x)  get_apic_id(x)
-
-#endif
include/asm-x86/mach-numaq/mach_ipi.h deleted +0 -25
Index: linux-2.6/include/asm-x86/mach-numaq/mach_ipi.h
===================================================================
@@ -1,25 +0,0 @@
-#ifndef __ASM_MACH_IPI_H
-#define __ASM_MACH_IPI_H
-
-void send_IPI_mask_sequence(cpumask_t, int vector);
-
-static inline void send_IPI_mask(cpumask_t mask, int vector)
-{
-	send_IPI_mask_sequence(mask, vector);
-}
-
-static inline void send_IPI_allbutself(int vector)
-{
-	cpumask_t mask = cpu_online_map;
-	cpu_clear(smp_processor_id(), mask);
-
-	if (!cpus_empty(mask))
-		send_IPI_mask(mask, vector);
-}
-
-static inline void send_IPI_all(int vector)
-{
-	send_IPI_mask(cpu_online_map, vector);
-}
-
-#endif /* __ASM_MACH_IPI_H */
include/asm-x86/mach-numaq/mach_mpparse.h deleted +0 -7
Index: linux-2.6/include/asm-x86/mach-numaq/mach_mpparse.h
===================================================================
@@ -1,7 +0,0 @@
-#ifndef __ASM_MACH_MPPARSE_H
-#define __ASM_MACH_MPPARSE_H
-
-extern void numaq_mps_oem_check(struct mp_config_table *mpc, char *oem,
-				char *productid);
-
-#endif /* __ASM_MACH_MPPARSE_H */
include/asm-x86/mach-numaq/mach_wakecpu.h deleted +0 -43

43 lines not on this page · raw message

include/asm-x86/numaq/apic.h new file +138 -0

138 lines not on this page · raw message

include/asm-x86/numaq/apicdef.h new file +14 -0
Index: linux-2.6/include/asm-x86/numaq/apicdef.h
===================================================================
@@ -0,0 +1,14 @@
+#ifndef __ASM_NUMAQ_APICDEF_H
+#define __ASM_NUMAQ_APICDEF_H
+
+
+#define APIC_ID_MASK (0xF<<24)
+
+static inline unsigned get_apic_id(unsigned long x)
+{
+	        return (((x)>>24)&0x0F);
+}
+
+#define         GET_APIC_ID(x)  get_apic_id(x)
+
+#endif
include/asm-x86/numaq/ipi.h new file +25 -0
Index: linux-2.6/include/asm-x86/numaq/ipi.h
===================================================================
@@ -0,0 +1,25 @@
+#ifndef __ASM_NUMAQ_IPI_H
+#define __ASM_NUMAQ_IPI_H
+
+void send_IPI_mask_sequence(cpumask_t, int vector);
+
+static inline void send_IPI_mask(cpumask_t mask, int vector)
+{
+	send_IPI_mask_sequence(mask, vector);
+}
+
+static inline void send_IPI_allbutself(int vector)
+{
+	cpumask_t mask = cpu_online_map;
+	cpu_clear(smp_processor_id(), mask);
+
+	if (!cpus_empty(mask))
+		send_IPI_mask(mask, vector);
+}
+
+static inline void send_IPI_all(int vector)
+{
+	send_IPI_mask(cpu_online_map, vector);
+}
+
+#endif /* __ASM_NUMAQ_IPI_H */
include/asm-x86/numaq/mpparse.h new file +7 -0
Index: linux-2.6/include/asm-x86/numaq/mpparse.h
===================================================================
@@ -0,0 +1,7 @@
+#ifndef __ASM_NUMAQ_MPPARSE_H
+#define __ASM_NUMAQ_MPPARSE_H
+
+extern void numaq_mps_oem_check(struct mp_config_table *mpc, char *oem,
+				char *productid);
+
+#endif /* __ASM_NUMAQ_MPPARSE_H */
include/asm-x86/numaq/wakecpu.h new file +43 -0

43 lines not on this page · raw message