printk, lockdep: Remove superfluous preempt_disable()
The raw_lock_irq_{save,restore}() already implies a non-preemptibility. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
94d24fc472
commit
47ff5c95db
@@ -841,7 +841,6 @@ asmlinkage int vprintk(const char *fmt, va_list args)
|
|||||||
boot_delay_msec();
|
boot_delay_msec();
|
||||||
printk_delay();
|
printk_delay();
|
||||||
|
|
||||||
preempt_disable();
|
|
||||||
/* This stops the holder of console_sem just where we want him */
|
/* This stops the holder of console_sem just where we want him */
|
||||||
raw_local_irq_save(flags);
|
raw_local_irq_save(flags);
|
||||||
this_cpu = smp_processor_id();
|
this_cpu = smp_processor_id();
|
||||||
@@ -965,7 +964,6 @@ asmlinkage int vprintk(const char *fmt, va_list args)
|
|||||||
out_restore_irqs:
|
out_restore_irqs:
|
||||||
raw_local_irq_restore(flags);
|
raw_local_irq_restore(flags);
|
||||||
|
|
||||||
preempt_enable();
|
|
||||||
return printed_len;
|
return printed_len;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(printk);
|
EXPORT_SYMBOL(printk);
|
||||||
|
Reference in New Issue
Block a user