Skip to content

Commit

Permalink
x86: make ipi_handler() always defined
Browse files Browse the repository at this point in the history
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: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Nov 9, 2007
1 parent d6322fa commit 4e2947f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/x86/kernel/cpu/mtrr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,12 @@ struct set_mtrr_data {
mtrr_type smp_type;
};

#ifdef CONFIG_SMP

static void ipi_handler(void *info)
/* [SUMMARY] Synchronisation handler. Executed by "other" CPUs.
[RETURNS] Nothing.
*/
{
#ifdef CONFIG_SMP
struct set_mtrr_data *data = info;
unsigned long flags;

Expand All @@ -168,9 +167,8 @@ static void ipi_handler(void *info)

atomic_dec(&data->count);
local_irq_restore(flags);
}

#endif
}

static inline int types_compatible(mtrr_type type1, mtrr_type type2) {
return type1 == MTRR_TYPE_UNCACHABLE ||
Expand Down

0 comments on commit 4e2947f

Please sign in to comment.