aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2019-05-28 11:02:34 +0200
committerDaniel Vetter <[email protected]>2019-06-12 20:27:07 +0200
commita135513c0b579be55c534b35e628be55578576b2 (patch)
tree1671522bd06cf5c6502c4b5631c5c97d43622583
parent7076404f7c8d3fc01e8cb8ea259c7552b2061ae0 (diff)
vt: might_sleep() annotation for do_blank_screen
For symmetry reasons with do_unblank_screen, except without the oops_in_progress special case. Just a drive-by annotation while I'm trying to untangle the fbcon vs. fbdev screen blank/unblank maze. Signed-off-by: Daniel Vetter <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Maarten Lankhorst <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Nicolas Pitre <[email protected]> Cc: Adam Borowski <[email protected]> Cc: Martin Hostettler <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Mikulas Patocka <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/tty/vt/vt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 5c0ca1c24b6f..30d29a04bfee 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -4166,6 +4166,8 @@ void do_blank_screen(int entering_gfx)
struct vc_data *vc = vc_cons[fg_console].d;
int i;
+ might_sleep();
+
WARN_CONSOLE_UNLOCKED();
if (console_blanked) {