blob: e21d2f12b5b67a8937474e6d6097703ceb3a1ae9 [file] [log] [blame]
Stefan Kristiansson8e6d08e2014-05-11 21:49:34 +03001/*
2 * Copyright (C) 2014 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
3 *
4 * This file is licensed under the terms of the GNU General Public License
5 * version 2. This program is licensed "as is" without any warranty of any
6 * kind, whether express or implied.
7 */
8
9#ifndef __ASM_OPENRISC_SMP_H
10#define __ASM_OPENRISC_SMP_H
11
12#include <asm/spr.h>
13#include <asm/spr_defs.h>
14
15#define raw_smp_processor_id() (current_thread_info()->cpu)
16#define hard_smp_processor_id() mfspr(SPR_COREID)
17
18extern void smp_init_cpus(void);
19
20extern void arch_send_call_function_single_ipi(int cpu);
21extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
22
23extern void set_smp_cross_call(void (*)(const struct cpumask *, unsigned int));
24extern void handle_IPI(unsigned int ipi_msg);
25
26#endif /* __ASM_OPENRISC_SMP_H */