From fc664b8373b7c170e7c644efe297897d6a15ac48 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Thu, 19 Jul 2007 18:32:43 +0300 Subject: [PATCH] --- yaml --- r: 63556 b: refs/heads/master c: 8a2d8693054a6cd86cc959576322b30e66e31208 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/ia64/kernel/smp.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index cffe8cea09c0..70f7217be687 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 056e6d89aab51babaa5f75c16832b19c55a68bc4 +refs/heads/master: 8a2d8693054a6cd86cc959576322b30e66e31208 diff --git a/trunk/arch/ia64/kernel/smp.c b/trunk/arch/ia64/kernel/smp.c index 0982882bfb80..4e446aa5f4ac 100644 --- a/trunk/arch/ia64/kernel/smp.c +++ b/trunk/arch/ia64/kernel/smp.c @@ -346,7 +346,7 @@ smp_flush_tlb_mm (struct mm_struct *mm) } /* - * Run a function on another CPU + * Run a function on a specific CPU * The function to run. This must be fast and non-blocking. * An arbitrary pointer to pass to the function. * Currently unused. @@ -366,9 +366,11 @@ smp_call_function_single (int cpuid, void (*func) (void *info), void *info, int int me = get_cpu(); /* prevent preemption and reschedule on another processor */ if (cpuid == me) { - printk(KERN_INFO "%s: trying to call self\n", __FUNCTION__); + local_irq_disable(); + func(info); + local_irq_enable(); put_cpu(); - return -EBUSY; + return 0; } data.func = func;