]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
printk, lockdep: Switch to tracked irq ops
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 7 Jun 2011 09:17:30 +0000 (11:17 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 14 Nov 2011 12:35:20 +0000 (13:35 +0100)
Switch to local_irq_ ops so that the irq state is properly tracked
(raw_local_irq_* isn't tracked by lockdep, causing confusion).

Possible now that commit dd4e5d3ac4a ("lockdep: Fix
trace_[soft,hard]irqs_[on,off]() recursion") cured the reason we
needed the raw_ ops.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/printk.c

index ba5ee04358219f3191beeb9b495fe186ad6133e7..dfd8f73dcb7656fbe6e4daf6c2d341b439056ed3 100644 (file)
@@ -842,7 +842,7 @@ asmlinkage int vprintk(const char *fmt, va_list args)
        printk_delay();
 
        /* This stops the holder of console_sem just where we want him */
-       raw_local_irq_save(flags);
+       local_irq_save(flags);
        this_cpu = smp_processor_id();
 
        /*
@@ -962,7 +962,7 @@ asmlinkage int vprintk(const char *fmt, va_list args)
 
        lockdep_on();
 out_restore_irqs:
-       raw_local_irq_restore(flags);
+       local_irq_restore(flags);
 
        return printed_len;
 }