smp.h (1724c7c0c9494dcbdd7f630f29e1e8427cb231d1) smp.h (ff2c8252bfbf069dda1e53353a63b560f1369f59)
1/*
2 * This file is subject to the terms and conditions of the GNU General
3 * Public License. See the file "COPYING" in the main directory of this
4 * archive for more details.
5 *
6 * Copyright (C) 2000 - 2001 by Kanoj Sarcar (kanoj@sgi.com)
7 * Copyright (C) 2000 - 2001 by Silicon Graphics, Inc.
8 * Copyright (C) 2000, 2001, 2002 Ralf Baechle

--- 44 unchanged lines hidden (view full) ---

53
54/*
55 * this function sends a 'reschedule' IPI to another CPU.
56 * it goes straight through and wastes no time serializing
57 * anything. Worst case is that we lose a reschedule ...
58 */
59static inline void smp_send_reschedule(int cpu)
60{
1/*
2 * This file is subject to the terms and conditions of the GNU General
3 * Public License. See the file "COPYING" in the main directory of this
4 * archive for more details.
5 *
6 * Copyright (C) 2000 - 2001 by Kanoj Sarcar (kanoj@sgi.com)
7 * Copyright (C) 2000 - 2001 by Silicon Graphics, Inc.
8 * Copyright (C) 2000, 2001, 2002 Ralf Baechle

--- 44 unchanged lines hidden (view full) ---

53
54/*
55 * this function sends a 'reschedule' IPI to another CPU.
56 * it goes straight through and wastes no time serializing
57 * anything. Worst case is that we lose a reschedule ...
58 */
59static inline void smp_send_reschedule(int cpu)
60{
61 extern struct plat_smp_ops *mp_ops; /* private */
61 extern const struct plat_smp_ops *mp_ops; /* private */
62
63 mp_ops->send_ipi_single(cpu, SMP_RESCHEDULE_YOURSELF);
64}
65
66#ifdef CONFIG_HOTPLUG_CPU
67static inline int __cpu_disable(void)
68{
62
63 mp_ops->send_ipi_single(cpu, SMP_RESCHEDULE_YOURSELF);
64}
65
66#ifdef CONFIG_HOTPLUG_CPU
67static inline int __cpu_disable(void)
68{
69 extern struct plat_smp_ops *mp_ops; /* private */
69 extern const struct plat_smp_ops *mp_ops; /* private */
70
71 return mp_ops->cpu_disable();
72}
73
74static inline void __cpu_die(unsigned int cpu)
75{
70
71 return mp_ops->cpu_disable();
72}
73
74static inline void __cpu_die(unsigned int cpu)
75{
76 extern struct plat_smp_ops *mp_ops; /* private */
76 extern const struct plat_smp_ops *mp_ops; /* private */
77
78 mp_ops->cpu_die(cpu);
79}
80
81extern void play_dead(void);
82#endif
83
84/*

--- 7 unchanged lines hidden (view full) ---

92 * This function will free up IPIs allocated with mips_smp_ipi_allocate to the
93 * CPUs in mask, which must be a subset of the IPIs that have been configured.
94 * Return 0 on success.
95 */
96int mips_smp_ipi_free(const struct cpumask *mask);
97
98static inline void arch_send_call_function_single_ipi(int cpu)
99{
77
78 mp_ops->cpu_die(cpu);
79}
80
81extern void play_dead(void);
82#endif
83
84/*

--- 7 unchanged lines hidden (view full) ---

92 * This function will free up IPIs allocated with mips_smp_ipi_allocate to the
93 * CPUs in mask, which must be a subset of the IPIs that have been configured.
94 * Return 0 on success.
95 */
96int mips_smp_ipi_free(const struct cpumask *mask);
97
98static inline void arch_send_call_function_single_ipi(int cpu)
99{
100 extern struct plat_smp_ops *mp_ops; /* private */
100 extern const struct plat_smp_ops *mp_ops; /* private */
101
102 mp_ops->send_ipi_mask(cpumask_of(cpu), SMP_CALL_FUNCTION);
103}
104
105static inline void arch_send_call_function_ipi_mask(const struct cpumask *mask)
106{
101
102 mp_ops->send_ipi_mask(cpumask_of(cpu), SMP_CALL_FUNCTION);
103}
104
105static inline void arch_send_call_function_ipi_mask(const struct cpumask *mask)
106{
107 extern struct plat_smp_ops *mp_ops; /* private */
107 extern const struct plat_smp_ops *mp_ops; /* private */
108
109 mp_ops->send_ipi_mask(mask, SMP_CALL_FUNCTION);
110}
111
112#endif /* __ASM_SMP_H */
108
109 mp_ops->send_ipi_mask(mask, SMP_CALL_FUNCTION);
110}
111
112#endif /* __ASM_SMP_H */