diff options
| author | Sergey Senozhatsky <[email protected]> | 2016-12-27 14:16:11 +0000 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2017-02-08 12:58:44 +0000 |
| commit | de6fcbdb68b29b475f4e6368cd465fd778ea421f (patch) | |
| tree | 83ce7885533b39b33cfb7f88585fc67a9dfd9a89 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | printk: remove zap_locks() function (diff) | |
| download | kernel-de6fcbdb68b29b475f4e6368cd465fd778ea421f.tar.gz kernel-de6fcbdb68b29b475f4e6368cd465fd778ea421f.zip | |
printk: convert the rest to printk-safe
This patch converts the rest of logbuf users (which are
out of printk recursion case, but can deadlock in printk).
To make printk-safe usage easier the patch introduces 4
helper macros:
- logbuf_lock_irq()/logbuf_unlock_irq()
lock/unlock the logbuf lock and disable/enable local IRQ
- logbuf_lock_irqsave(flags)/logbuf_unlock_irqrestore(flags)
lock/unlock the logbuf lock and saves/restores local IRQ state
Link: http://lkml.kernel.org/r/[email protected]
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Calvin Owens <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Peter Hurley <[email protected]>
Cc: [email protected]
Signed-off-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
