Ben Guthro | f447d56 | 2012-04-21 00:11:04 +0800 | [diff] [blame] | 1 | #ifndef _XEN_SMP_H |
| 2 | |
Boris Ostrovsky | 5fc509b | 2016-08-03 13:22:27 -0400 | [diff] [blame] | 3 | #ifdef CONFIG_SMP |
Ben Guthro | f447d56 | 2012-04-21 00:11:04 +0800 | [diff] [blame] | 4 | extern void xen_send_IPI_mask(const struct cpumask *mask, |
| 5 | int vector); |
| 6 | extern void xen_send_IPI_mask_allbutself(const struct cpumask *mask, |
| 7 | int vector); |
| 8 | extern void xen_send_IPI_allbutself(int vector); |
Ben Guthro | f447d56 | 2012-04-21 00:11:04 +0800 | [diff] [blame] | 9 | extern void xen_send_IPI_all(int vector); |
| 10 | extern void xen_send_IPI_self(int vector); |
| 11 | |
Boris Ostrovsky | 5fc509b | 2016-08-03 13:22:27 -0400 | [diff] [blame] | 12 | extern int xen_smp_intr_init(unsigned int cpu); |
| 13 | extern void xen_smp_intr_free(unsigned int cpu); |
Vitaly Kuznetsov | 04e9576 | 2017-03-14 18:35:42 +0100 | [diff] [blame] | 14 | int xen_smp_intr_init_pv(unsigned int cpu); |
| 15 | void xen_smp_intr_free_pv(unsigned int cpu); |
Boris Ostrovsky | 5fc509b | 2016-08-03 13:22:27 -0400 | [diff] [blame] | 16 | |
Vitaly Kuznetsov | a52482d | 2017-03-14 18:35:45 +0100 | [diff] [blame^] | 17 | void xen_smp_send_reschedule(int cpu); |
| 18 | void xen_smp_send_call_function_ipi(const struct cpumask *mask); |
| 19 | void xen_smp_send_call_function_single_ipi(int cpu); |
Boris Ostrovsky | 5fc509b | 2016-08-03 13:22:27 -0400 | [diff] [blame] | 20 | #else /* CONFIG_SMP */ |
| 21 | |
| 22 | static inline int xen_smp_intr_init(unsigned int cpu) |
| 23 | { |
| 24 | return 0; |
| 25 | } |
| 26 | static inline void xen_smp_intr_free(unsigned int cpu) {} |
Vitaly Kuznetsov | 04e9576 | 2017-03-14 18:35:42 +0100 | [diff] [blame] | 27 | |
| 28 | static inline int xen_smp_intr_init_pv(unsigned int cpu) |
| 29 | { |
| 30 | return 0; |
| 31 | } |
| 32 | static inline void xen_smp_intr_free_pv(unsigned int cpu) {} |
Boris Ostrovsky | 5fc509b | 2016-08-03 13:22:27 -0400 | [diff] [blame] | 33 | #endif /* CONFIG_SMP */ |
| 34 | |
Ben Guthro | f447d56 | 2012-04-21 00:11:04 +0800 | [diff] [blame] | 35 | #endif |