aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/hypervisor.h17
-rw-r--r--include/linux/smp.h3
2 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/hypervisor.h b/include/linux/hypervisor.h
new file mode 100644
index 000000000000..3fa5ef2b3759
--- /dev/null
+++ b/include/linux/hypervisor.h
@@ -0,0 +1,17 @@
1#ifndef __LINUX_HYPEVISOR_H
2#define __LINUX_HYPEVISOR_H
3
4/*
5 * Generic Hypervisor support
6 * Juergen Gross <jgross@suse.com>
7 */
8
9#ifdef CONFIG_HYPERVISOR_GUEST
10#include <asm/hypervisor.h>
11#else
12static inline void hypervisor_pin_vcpu(int cpu)
13{
14}
15#endif
16
17#endif /* __LINUX_HYPEVISOR_H */
diff --git a/include/linux/smp.h b/include/linux/smp.h
index eccae4690f41..8e0cb7a0f836 100644
--- a/include/linux/smp.h
+++ b/include/linux/smp.h
@@ -196,6 +196,9 @@ extern void arch_enable_nonboot_cpus_end(void);
196 196
197void smp_setup_processor_id(void); 197void smp_setup_processor_id(void);
198 198
199int smp_call_on_cpu(unsigned int cpu, int (*func)(void *), void *par,
200 bool phys);
201
199/* SMP core functions */ 202/* SMP core functions */
200int smpcfd_prepare_cpu(unsigned int cpu); 203int smpcfd_prepare_cpu(unsigned int cpu);
201int smpcfd_dead_cpu(unsigned int cpu); 204int smpcfd_dead_cpu(unsigned int cpu);