提交 16694024 编写于 作者: G Glauber Costa 提交者: Ingo Molnar

x86: define smp_ops in common header

x86_64 will benefit from it
Signed-off-by: NGlauber Costa <gcosta@redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 53ebef49
...@@ -8,6 +8,20 @@ extern cpumask_t cpu_callout_map; ...@@ -8,6 +8,20 @@ extern cpumask_t cpu_callout_map;
extern int smp_num_siblings; extern int smp_num_siblings;
extern unsigned int num_processors; extern unsigned int num_processors;
struct smp_ops {
void (*smp_prepare_boot_cpu)(void);
void (*smp_prepare_cpus)(unsigned max_cpus);
int (*cpu_up)(unsigned cpu);
void (*smp_cpus_done)(unsigned max_cpus);
void (*smp_send_stop)(void);
void (*smp_send_reschedule)(int cpu);
int (*smp_call_function_mask)(cpumask_t mask,
void (*func)(void *info), void *info,
int wait);
};
#ifdef CONFIG_X86_32 #ifdef CONFIG_X86_32
# include "smp_32.h" # include "smp_32.h"
#else #else
......
...@@ -38,20 +38,6 @@ extern void remove_siblinginfo(int cpu); ...@@ -38,20 +38,6 @@ extern void remove_siblinginfo(int cpu);
/* Globals due to paravirt */ /* Globals due to paravirt */
extern void set_cpu_sibling_map(int cpu); extern void set_cpu_sibling_map(int cpu);
struct smp_ops
{
void (*smp_prepare_boot_cpu)(void);
void (*smp_prepare_cpus)(unsigned max_cpus);
int (*cpu_up)(unsigned cpu);
void (*smp_cpus_done)(unsigned max_cpus);
void (*smp_send_stop)(void);
void (*smp_send_reschedule)(int cpu);
int (*smp_call_function_mask)(cpumask_t mask,
void (*func)(void *info), void *info,
int wait);
};
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
extern struct smp_ops smp_ops; extern struct smp_ops smp_ops;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册