Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
[deliverable/linux.git] / arch / arm64 / include / asm / smp.h
CommitLineData
08e875c1
CM
1/*
2 * Copyright (C) 2012 ARM Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#ifndef __ASM_SMP_H
17#define __ASM_SMP_H
18
19#include <linux/threads.h>
20#include <linux/cpumask.h>
21#include <linux/thread_info.h>
22
23#ifndef CONFIG_SMP
24# error "<asm/smp.h> included in non-SMP build"
25#endif
26
27#define raw_smp_processor_id() (current_thread_info()->cpu)
28
29struct seq_file;
30
31/*
32 * generate IPI list text
33 */
34extern void show_ipi_list(struct seq_file *p, int prec);
35
36/*
37 * Called from C code, this handles an IPI.
38 */
39extern void handle_IPI(int ipinr, struct pt_regs *regs);
40
41/*
42 * Setup the set of possible CPUs (via set_cpu_possible)
43 */
44extern void smp_init_cpus(void);
45
46/*
47 * Provide a function to raise an IPI cross call on CPUs in callmap.
48 */
49extern void set_smp_cross_call(void (*)(const struct cpumask *, unsigned int));
50
36310736
FW
51extern void (*__smp_cross_call)(const struct cpumask *, unsigned int);
52
08e875c1
CM
53/*
54 * Called from the secondary holding pen, this is the secondary CPU entry point.
55 */
56asmlinkage void secondary_start_kernel(void);
57
58/*
59 * Initial data for bringing up a secondary CPU.
60 */
61struct secondary_data {
62 void *stack;
63};
64extern struct secondary_data secondary_data;
652af899 65extern void secondary_entry(void);
08e875c1
CM
66
67extern void arch_send_call_function_single_ipi(int cpu);
68extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
69
9327e2c6
MR
70extern int __cpu_disable(void);
71
72extern void __cpu_die(unsigned int cpu);
73extern void cpu_die(void);
74
08e875c1 75#endif /* ifndef __ASM_SMP_H */
This page took 0.399251 seconds and 5 git commands to generate.