Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a9a8aef authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar
Browse files

printk, lockdep: Switch to tracked irq ops



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 dd4e5d3a ("lockdep: Fix
trace_[soft,hard]irqs_[on,off]() recursion") cured the reason we
needed the raw_ ops.

Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 47ff5c95
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}