diff options
author | Guo Ren <ren_guo@c-sky.com> | 2018-09-05 09:25:20 +0300 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2018-10-25 19:54:26 +0300 |
commit | 991069865796f8ad31ee54aca8a0f1b7a522e94b (patch) | |
tree | 984f0d53f04f090c5872ff6d7d2e3db2e3d0e096 /arch/csky/include/asm/smp.h | |
parent | 2ce36bfa6a0904524baed699ad78706e50295f84 (diff) | |
download | linux-991069865796f8ad31ee54aca8a0f1b7a522e94b.tar.xz |
csky: SMP support
This patch adds boot, ipi, hotplug codes for SMP.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/csky/include/asm/smp.h')
-rw-r--r-- | arch/csky/include/asm/smp.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/csky/include/asm/smp.h b/arch/csky/include/asm/smp.h new file mode 100644 index 000000000000..4a929c4d6437 --- /dev/null +++ b/arch/csky/include/asm/smp.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef __ASM_CSKY_SMP_H +#define __ASM_CSKY_SMP_H + +#include <linux/cpumask.h> +#include <linux/irqreturn.h> +#include <linux/threads.h> + +#ifdef CONFIG_SMP + +void __init setup_smp(void); + +void __init setup_smp_ipi(void); + +void arch_send_call_function_ipi_mask(struct cpumask *mask); + +void arch_send_call_function_single_ipi(int cpu); + +void __init set_send_ipi(void (*func)(const struct cpumask *mask), int irq); + +#define raw_smp_processor_id() (current_thread_info()->cpu) + +#endif /* CONFIG_SMP */ + +#endif /* __ASM_CSKY_SMP_H */ |