Commit 8c7c5131 authored by Dave Jones's avatar Dave Jones

[AGPGART] Simplify global_cache_flush

on_each_cpu does the right thing in the UP case, so we can
kill those ugly ifdefs.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent b2309665
......@@ -958,21 +958,15 @@ void agp_enable(u32 mode)
EXPORT_SYMBOL(agp_enable);
#ifdef CONFIG_SMP
static void ipi_handler(void *null)
{
flush_agp_cache();
}
#endif
void global_cache_flush(void)
{
#ifdef CONFIG_SMP
if (on_each_cpu(ipi_handler, NULL, 1, 1) != 0)
panic(PFX "timed out waiting for the other CPUs!\n");
#else
flush_agp_cache();
#endif
}
EXPORT_SYMBOL(global_cache_flush);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment