diff options
-rw-r--r-- | arch/x86_64/kernel/genapic_cluster.c | 4 | ||||
-rw-r--r-- | arch/x86_64/kernel/genapic_flat.c | 8 | ||||
-rw-r--r-- | include/asm-x86_64/ipi.h | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86_64/kernel/genapic_cluster.c b/arch/x86_64/kernel/genapic_cluster.c index f6523dd1bc09..a472d62f899a 100644 --- a/arch/x86_64/kernel/genapic_cluster.c +++ b/arch/x86_64/kernel/genapic_cluster.c | |||
@@ -51,10 +51,10 @@ static void cluster_init_apic_ldr(void) | |||
51 | count = 3; | 51 | count = 3; |
52 | id = my_cluster | (1UL << count); | 52 | id = my_cluster | (1UL << count); |
53 | x86_cpu_to_log_apicid[smp_processor_id()] = id; | 53 | x86_cpu_to_log_apicid[smp_processor_id()] = id; |
54 | apic_write_around(APIC_DFR, APIC_DFR_CLUSTER); | 54 | apic_write(APIC_DFR, APIC_DFR_CLUSTER); |
55 | val = apic_read(APIC_LDR) & ~APIC_LDR_MASK; | 55 | val = apic_read(APIC_LDR) & ~APIC_LDR_MASK; |
56 | val |= SET_APIC_LOGICAL_ID(id); | 56 | val |= SET_APIC_LOGICAL_ID(id); |
57 | apic_write_around(APIC_LDR, val); | 57 | apic_write(APIC_LDR, val); |
58 | } | 58 | } |
59 | 59 | ||
60 | /* Start with all IRQs pointing to boot CPU. IRQ balancing will shift them. */ | 60 | /* Start with all IRQs pointing to boot CPU. IRQ balancing will shift them. */ |
diff --git a/arch/x86_64/kernel/genapic_flat.c b/arch/x86_64/kernel/genapic_flat.c index 6d57da96bf8c..8c6028a0f322 100644 --- a/arch/x86_64/kernel/genapic_flat.c +++ b/arch/x86_64/kernel/genapic_flat.c | |||
@@ -38,10 +38,10 @@ static void flat_init_apic_ldr(void) | |||
38 | num = smp_processor_id(); | 38 | num = smp_processor_id(); |
39 | id = 1UL << num; | 39 | id = 1UL << num; |
40 | x86_cpu_to_log_apicid[num] = id; | 40 | x86_cpu_to_log_apicid[num] = id; |
41 | apic_write_around(APIC_DFR, APIC_DFR_FLAT); | 41 | apic_write(APIC_DFR, APIC_DFR_FLAT); |
42 | val = apic_read(APIC_LDR) & ~APIC_LDR_MASK; | 42 | val = apic_read(APIC_LDR) & ~APIC_LDR_MASK; |
43 | val |= SET_APIC_LOGICAL_ID(id); | 43 | val |= SET_APIC_LOGICAL_ID(id); |
44 | apic_write_around(APIC_LDR, val); | 44 | apic_write(APIC_LDR, val); |
45 | } | 45 | } |
46 | 46 | ||
47 | static void flat_send_IPI_mask(cpumask_t cpumask, int vector) | 47 | static void flat_send_IPI_mask(cpumask_t cpumask, int vector) |
@@ -62,7 +62,7 @@ static void flat_send_IPI_mask(cpumask_t cpumask, int vector) | |||
62 | * prepare target chip field | 62 | * prepare target chip field |
63 | */ | 63 | */ |
64 | cfg = __prepare_ICR2(mask); | 64 | cfg = __prepare_ICR2(mask); |
65 | apic_write_around(APIC_ICR2, cfg); | 65 | apic_write(APIC_ICR2, cfg); |
66 | 66 | ||
67 | /* | 67 | /* |
68 | * program the ICR | 68 | * program the ICR |
@@ -72,7 +72,7 @@ static void flat_send_IPI_mask(cpumask_t cpumask, int vector) | |||
72 | /* | 72 | /* |
73 | * Send the IPI. The write to APIC_ICR fires this off. | 73 | * Send the IPI. The write to APIC_ICR fires this off. |
74 | */ | 74 | */ |
75 | apic_write_around(APIC_ICR, cfg); | 75 | apic_write(APIC_ICR, cfg); |
76 | local_irq_restore(flags); | 76 | local_irq_restore(flags); |
77 | } | 77 | } |
78 | 78 | ||
diff --git a/include/asm-x86_64/ipi.h b/include/asm-x86_64/ipi.h index 5e166b9d3bde..7ba668f43c59 100644 --- a/include/asm-x86_64/ipi.h +++ b/include/asm-x86_64/ipi.h | |||
@@ -66,7 +66,7 @@ static inline void __send_IPI_shortcut(unsigned int shortcut, int vector, unsign | |||
66 | /* | 66 | /* |
67 | * Send the IPI. The write to APIC_ICR fires this off. | 67 | * Send the IPI. The write to APIC_ICR fires this off. |
68 | */ | 68 | */ |
69 | apic_write_around(APIC_ICR, cfg); | 69 | apic_write(APIC_ICR, cfg); |
70 | } | 70 | } |
71 | 71 | ||
72 | 72 | ||
@@ -92,7 +92,7 @@ static inline void send_IPI_mask_sequence(cpumask_t mask, int vector) | |||
92 | * prepare target chip field | 92 | * prepare target chip field |
93 | */ | 93 | */ |
94 | cfg = __prepare_ICR2(x86_cpu_to_apicid[query_cpu]); | 94 | cfg = __prepare_ICR2(x86_cpu_to_apicid[query_cpu]); |
95 | apic_write_around(APIC_ICR2, cfg); | 95 | apic_write(APIC_ICR2, cfg); |
96 | 96 | ||
97 | /* | 97 | /* |
98 | * program the ICR | 98 | * program the ICR |
@@ -102,7 +102,7 @@ static inline void send_IPI_mask_sequence(cpumask_t mask, int vector) | |||
102 | /* | 102 | /* |
103 | * Send the IPI. The write to APIC_ICR fires this off. | 103 | * Send the IPI. The write to APIC_ICR fires this off. |
104 | */ | 104 | */ |
105 | apic_write_around(APIC_ICR, cfg); | 105 | apic_write(APIC_ICR, cfg); |
106 | } | 106 | } |
107 | local_irq_restore(flags); | 107 | local_irq_restore(flags); |
108 | } | 108 | } |