License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / metag / include / asm / smp.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_SMP_H
3 #define __ASM_SMP_H
4
5 #include <linux/cpumask.h>
6
7 #define raw_smp_processor_id() (current_thread_info()->cpu)
8
9 enum ipi_msg_type {
10         IPI_CALL_FUNC,
11         IPI_RESCHEDULE,
12 };
13
14 extern void arch_send_call_function_single_ipi(int cpu);
15 extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
16
17 asmlinkage void secondary_start_kernel(void);
18
19 extern void secondary_startup(void);
20
21 #ifdef CONFIG_HOTPLUG_CPU
22 extern void __cpu_die(unsigned int cpu);
23 extern int __cpu_disable(void);
24 extern void cpu_die(void);
25 #endif
26
27 extern void smp_init_cpus(void);
28 #endif /* __ASM_SMP_H */