Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f72267c30f5a08f9a77c97417ec120e6943195f8
Commit:     f72267c30f5a08f9a77c97417ec120e6943195f8
Parent:     29c349d22ccda5678a7dfb732093dbd3befcefa3
Author:     Russell King <[EMAIL PROTECTED]>
AuthorDate: Sat Jun 2 15:36:37 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Sat Jun 2 21:31:49 2007 +0100

    [ARM] Solve buggy smp_processor_id() usage
    
    BUG: using smp_processor_id() in preemptible [00000001] code: opcontrol/427
    
    Resolve this bug by ensuring that we're not using smp_processor_id() in
    a preemptable context (by disabling preemption.)
    
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 arch/arm/oprofile/op_model_mpcore.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/oprofile/op_model_mpcore.c 
b/arch/arm/oprofile/op_model_mpcore.c
index 7791da7..75bae06 100644
--- a/arch/arm/oprofile/op_model_mpcore.c
+++ b/arch/arm/oprofile/op_model_mpcore.c
@@ -200,8 +200,10 @@ static int em_call_function(int (*fn)(void))
        data.fn = fn;
        data.ret = 0;
 
+       preempt_disable();
        smp_call_function(em_func, &data, 1, 1);
        em_func(&data);
+       preempt_enable();
 
        return data.ret;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to