[Intel-gfx] [PATCH 03/33] vt: might_sleep() annotation for do_blank_screen
Daniel Vetter
daniel.vetter at ffwll.ch
Tue May 28 09:02:34 UTC 2019
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 <daniel.vetter at intel.com>
Reviewed-by: Sam Ravnborg <sam at ravnborg.org>
Acked-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Cc: Nicolas Pitre <nicolas.pitre at linaro.org>
Cc: Adam Borowski <kilobyte at angband.pl>
Cc: Martin Hostettler <textshell at uchuujin.de>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Cc: Mikulas Patocka <mpatocka at redhat.com>
---
drivers/tty/vt/vt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index fdd12f8c3deb..bc9813b14c58 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -4159,6 +4159,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) {
--
2.20.1
More information about the Intel-gfx
mailing list