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