aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mach-default
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/mach-default')
-rw-r--r--arch/x86/include/asm/mach-default/mach_apic.h12
-rw-r--r--arch/x86/include/asm/mach-default/mach_ipi.h12
2 files changed, 12 insertions, 12 deletions
diff --git a/arch/x86/include/asm/mach-default/mach_apic.h b/arch/x86/include/asm/mach-default/mach_apic.h
index df8e024c43c5..8863d978cb96 100644
--- a/arch/x86/include/asm/mach-default/mach_apic.h
+++ b/arch/x86/include/asm/mach-default/mach_apic.h
@@ -8,12 +8,12 @@
8 8
9#define APIC_DFR_VALUE (APIC_DFR_FLAT) 9#define APIC_DFR_VALUE (APIC_DFR_FLAT)
10 10
11static inline const cpumask_t *target_cpus(void) 11static inline const struct cpumask *target_cpus(void)
12{ 12{
13#ifdef CONFIG_SMP 13#ifdef CONFIG_SMP
14 return &cpu_online_map; 14 return cpu_online_mask;
15#else 15#else
16 return &cpumask_of_cpu(0); 16 return cpumask_of(0);
17#endif 17#endif
18} 18}
19 19
@@ -62,9 +62,9 @@ static inline int apic_id_registered(void)
62 return physid_isset(read_apic_id(), phys_cpu_present_map); 62 return physid_isset(read_apic_id(), phys_cpu_present_map);
63} 63}
64 64
65static inline unsigned int cpu_mask_to_apicid(const cpumask_t *cpumask) 65static inline unsigned int cpu_mask_to_apicid(const struct cpumask *cpumask)
66{ 66{
67 return cpus_addr(*cpumask)[0]; 67 return cpumask_bits(cpumask)[0];
68} 68}
69 69
70static inline unsigned int cpu_mask_to_apicid_and(const struct cpumask *cpumask, 70static inline unsigned int cpu_mask_to_apicid_and(const struct cpumask *cpumask,
@@ -98,7 +98,7 @@ static inline int apicid_to_node(int logical_apicid)
98#endif 98#endif
99} 99}
100 100
101static inline void vector_allocation_domain(int cpu, cpumask_t *retmask) 101static inline void vector_allocation_domain(int cpu, struct cpumask *retmask)
102{ 102{
103 /* Careful. Some cpus do not strictly honor the set of cpus 103 /* Careful. Some cpus do not strictly honor the set of cpus
104 * specified in the interrupt destination when using lowest 104 * specified in the interrupt destination when using lowest
diff --git a/arch/x86/include/asm/mach-default/mach_ipi.h b/arch/x86/include/asm/mach-default/mach_ipi.h
index 9353ab854a10..191312d155da 100644
--- a/arch/x86/include/asm/mach-default/mach_ipi.h
+++ b/arch/x86/include/asm/mach-default/mach_ipi.h
@@ -4,8 +4,8 @@
4/* Avoid include hell */ 4/* Avoid include hell */
5#define NMI_VECTOR 0x02 5#define NMI_VECTOR 0x02
6 6
7void send_IPI_mask_bitmask(const cpumask_t *mask, int vector); 7void send_IPI_mask_bitmask(const struct cpumask *mask, int vector);
8void send_IPI_mask_allbutself(const cpumask_t *mask, int vector); 8void send_IPI_mask_allbutself(const struct cpumask *mask, int vector);
9void __send_IPI_shortcut(unsigned int shortcut, int vector); 9void __send_IPI_shortcut(unsigned int shortcut, int vector);
10 10
11extern int no_broadcast; 11extern int no_broadcast;
@@ -15,17 +15,17 @@ extern int no_broadcast;
15#define send_IPI_mask (genapic->send_IPI_mask) 15#define send_IPI_mask (genapic->send_IPI_mask)
16#define send_IPI_mask_allbutself (genapic->send_IPI_mask_allbutself) 16#define send_IPI_mask_allbutself (genapic->send_IPI_mask_allbutself)
17#else 17#else
18static inline void send_IPI_mask(const cpumask_t *mask, int vector) 18static inline void send_IPI_mask(const struct cpumask *mask, int vector)
19{ 19{
20 send_IPI_mask_bitmask(mask, vector); 20 send_IPI_mask_bitmask(mask, vector);
21} 21}
22void send_IPI_mask_allbutself(const cpumask_t *mask, int vector); 22void send_IPI_mask_allbutself(const struct cpumask *mask, int vector);
23#endif 23#endif
24 24
25static inline void __local_send_IPI_allbutself(int vector) 25static inline void __local_send_IPI_allbutself(int vector)
26{ 26{
27 if (no_broadcast || vector == NMI_VECTOR) 27 if (no_broadcast || vector == NMI_VECTOR)
28 send_IPI_mask_allbutself(&cpu_online_map, vector); 28 send_IPI_mask_allbutself(cpu_online_mask, vector);
29 else 29 else
30 __send_IPI_shortcut(APIC_DEST_ALLBUT, vector); 30 __send_IPI_shortcut(APIC_DEST_ALLBUT, vector);
31} 31}
@@ -33,7 +33,7 @@ static inline void __local_send_IPI_allbutself(int vector)
33static inline void __local_send_IPI_all(int vector) 33static inline void __local_send_IPI_all(int vector)
34{ 34{
35 if (no_broadcast || vector == NMI_VECTOR) 35 if (no_broadcast || vector == NMI_VECTOR)
36 send_IPI_mask(&cpu_online_map, vector); 36 send_IPI_mask(cpu_online_mask, vector);
37 else 37 else
38 __send_IPI_shortcut(APIC_DEST_ALLINC, vector); 38 __send_IPI_shortcut(APIC_DEST_ALLINC, vector);
39} 39}