From: Matt Fleming Date: Sat, 13 Jun 2009 21:23:27 +0000 (+0100) Subject: sh: Make the atomic functions safe for irqsoff tracing X-Git-Tag: v2.6.31-rc1~139^2~16 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c50f6f38399685d0c9ef0f5ffd6c4955e31cb26;p=pandora-kernel.git sh: Make the atomic functions safe for irqsoff tracing The irqsoff tracer uses the atomic_* functions internally, but the implementations of those functions in arch/sh/include/asm/atomic-irq.h disable irqs to achieve atomicity. A continuous loop ensues where we disable interrupts, trace the interrupt disabling, call atomic_* functions, disable interrupts, trace the interrupt disabling, etc.. The simplest solution to all this is to just convert uses of local_irq_save()/local_irq_restore() the raw_* equivalents because the raw_* equivalents don't call trace_hardirqs_on()/trace_hardirqs_off(). Signed-off-by: Matt Fleming Signed-off-by: Paul Mundt --- Reading git-diff-tree failed