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

Skip to content
Snippets Groups Projects
Commit 5f9fa8a6 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

lockdep: make cli/sti annotation warnings clearer


make cli/sti annotation warnings easier to interpret.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
parent f194d132
Branches
No related tags found
No related merge requests found
...@@ -2654,10 +2654,15 @@ static void check_flags(unsigned long flags) ...@@ -2654,10 +2654,15 @@ static void check_flags(unsigned long flags)
if (!debug_locks) if (!debug_locks)
return; return;
if (irqs_disabled_flags(flags)) if (irqs_disabled_flags(flags)) {
DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled); if (DEBUG_LOCKS_WARN_ON(current->hardirqs_enabled)) {
else printk("possible reason: unannotated irqs-off.\n");
DEBUG_LOCKS_WARN_ON(!current->hardirqs_enabled); }
} else {
if (DEBUG_LOCKS_WARN_ON(!current->hardirqs_enabled)) {
printk("possible reason: unannotated irqs-on.\n");
}
}
/* /*
* We dont accurately track softirq state in e.g. * We dont accurately track softirq state in e.g.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment