Skip to content

Commit

Permalink
printk: add lock context annotation
Browse files Browse the repository at this point in the history
acquire_console_semaphore_for_printk() releases logbuf_lock but
was missing proper annotation. Add it.

Signed-off-by: Namhyung Kim <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
namhyung authored and torvalds committed Oct 26, 2010
1 parent 6c095ef commit 8155c02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ static inline int can_use_console(unsigned int cpu)
* released but interrupts still disabled.
*/
static int acquire_console_semaphore_for_printk(unsigned int cpu)
__releases(&logbuf_lock)
{
int retval = 0;

Expand Down

0 comments on commit 8155c02

Please sign in to comment.