hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/ia64/include/asm/smp.h
....@@ -18,7 +18,6 @@
1818 #include <linux/bitops.h>
1919 #include <linux/irqreturn.h>
2020
21
-#include <asm/io.h>
2221 #include <asm/param.h>
2322 #include <asm/processor.h>
2423 #include <asm/ptrace.h>
....@@ -44,11 +43,6 @@
4443
4544 #ifdef CONFIG_SMP
4645
47
-#define XTP_OFFSET 0x1e0008
48
-
49
-#define SMP_IRQ_REDIRECTION (1 << 0)
50
-#define SMP_IPI_REDIRECTION (1 << 1)
51
-
5246 #define raw_smp_processor_id() (current_thread_info()->cpu)
5347
5448 extern struct smp_boot_data {
....@@ -62,7 +56,6 @@
6256 DECLARE_PER_CPU_SHARED_ALIGNED(cpumask_t, cpu_sibling_map);
6357 extern int smp_num_siblings;
6458 extern void __iomem *ipi_base_addr;
65
-extern unsigned char smp_int_redirect;
6659
6760 extern volatile int ia64_cpu_to_sapicid[];
6861 #define cpu_physical_id(i) ia64_cpu_to_sapicid[i]
....@@ -82,34 +75,6 @@
8275 if (cpu_physical_id(i) == cpuid)
8376 break;
8477 return i;
85
-}
86
-
87
-/*
88
- * XTP control functions:
89
- * min_xtp : route all interrupts to this CPU
90
- * normal_xtp: nominal XTP value
91
- * max_xtp : never deliver interrupts to this CPU.
92
- */
93
-
94
-static inline void
95
-min_xtp (void)
96
-{
97
- if (smp_int_redirect & SMP_IRQ_REDIRECTION)
98
- writeb(0x00, ipi_base_addr + XTP_OFFSET); /* XTP to min */
99
-}
100
-
101
-static inline void
102
-normal_xtp (void)
103
-{
104
- if (smp_int_redirect & SMP_IRQ_REDIRECTION)
105
- writeb(0x08, ipi_base_addr + XTP_OFFSET); /* XTP normal */
106
-}
107
-
108
-static inline void
109
-max_xtp (void)
110
-{
111
- if (smp_int_redirect & SMP_IRQ_REDIRECTION)
112
- writeb(0x0f, ipi_base_addr + XTP_OFFSET); /* Set XTP to max */
11378 }
11479
11580 /* Upping and downing of CPUs */