summaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
authorMichal Simek2010-08-10 02:18:24 +0200
committerLinus Torvalds2010-08-10 05:44:54 +0200
commit9e58143dc08123c22c5b9f782b2913bd3a07a03d (patch)
treefe315688cb22a9c0e9758018ee21e5397264a015 /mm/util.c
parentdrivers/video/w100fb.c: ignore void return value / fix build failure (diff)
downloadkernel-qcow2-linux-9e58143dc08123c22c5b9f782b2913bd3a07a03d.tar.gz
kernel-qcow2-linux-9e58143dc08123c22c5b9f782b2913bd3a07a03d.tar.xz
kernel-qcow2-linux-9e58143dc08123c22c5b9f782b2913bd3a07a03d.zip
asm-generic: use raw_local_irq_save/restore instead local_irq_save/restore
The start/stop_critical_timing functions for preemptirqsoff, preemptoff and irqsoff tracers contain atomic_inc() and atomic_dec() operations. Atomic operations use local_irq_save/restore macros to ensure atomic access but they are traced by the same function which is causing recursion problem. The reason is when these tracers are turn ON then the local_irq_save/restore macros are changed in include/linux/irqflags.h to call trace_hardirqs_on/off which call start/stop_critical_timing. Microblaze was affected because it uses generic atomic implementation. Signed-off-by: Michal Simek <monstr@monstr.eu> Acked-by: Steven Rostedt <rostedt@goodmis.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions