提交 4e2947f1 编写于 作者: I Ingo Molnar

x86: make ipi_handler() always defined

prepare for up_smp_call_function() to ensure that the 'func'
pointer is unused. (which is related to a KVM build fix)
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 d6322faf
...@@ -139,13 +139,12 @@ struct set_mtrr_data { ...@@ -139,13 +139,12 @@ struct set_mtrr_data {
mtrr_type smp_type; mtrr_type smp_type;
}; };
#ifdef CONFIG_SMP
static void ipi_handler(void *info) static void ipi_handler(void *info)
/* [SUMMARY] Synchronisation handler. Executed by "other" CPUs. /* [SUMMARY] Synchronisation handler. Executed by "other" CPUs.
[RETURNS] Nothing. [RETURNS] Nothing.
*/ */
{ {
#ifdef CONFIG_SMP
struct set_mtrr_data *data = info; struct set_mtrr_data *data = info;
unsigned long flags; unsigned long flags;
...@@ -168,9 +167,8 @@ static void ipi_handler(void *info) ...@@ -168,9 +167,8 @@ static void ipi_handler(void *info)
atomic_dec(&data->count); atomic_dec(&data->count);
local_irq_restore(flags); local_irq_restore(flags);
}
#endif #endif
}
static inline int types_compatible(mtrr_type type1, mtrr_type type2) { static inline int types_compatible(mtrr_type type1, mtrr_type type2) {
return type1 == MTRR_TYPE_UNCACHABLE || return type1 == MTRR_TYPE_UNCACHABLE ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册