diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-26 17:22:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 19:52:16 -0400 |
commit | 8155c02a44a95562e1ae0999360eb31288d7195a (patch) | |
tree | 65a5d03b8ce866b149d50f9a9d6b798fbeae715b | |
parent | 6c095efd82e8f6a98515426a733110f91cf0a709 (diff) |
printk: add lock context annotation
acquire_console_semaphore_for_printk() releases logbuf_lock but
was missing proper annotation. Add it.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | kernel/printk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index d18933a92819..6ff26151f4ff 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
@@ -647,6 +647,7 @@ static inline int can_use_console(unsigned int cpu) | |||
647 | * released but interrupts still disabled. | 647 | * released but interrupts still disabled. |
648 | */ | 648 | */ |
649 | static int acquire_console_semaphore_for_printk(unsigned int cpu) | 649 | static int acquire_console_semaphore_for_printk(unsigned int cpu) |
650 | __releases(&logbuf_lock) | ||
650 | { | 651 | { |
651 | int retval = 0; | 652 | int retval = 0; |
652 | 653 | ||