From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Staudt Date: Wed, 13 Dec 2017 19:47:50 +0000 Subject: [RFC PATCH v2 08/13] sysrq: Disable bootsplash on SAK Message-Id: <20171213194755.3409-9-mstaudt@suse.de> List-Id: References: <20171213194755.3409-1-mstaudt@suse.de> In-Reply-To: <20171213194755.3409-1-mstaudt@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: b.zolnierkie@samsung.com, linux-fbdev@vger.kernel.org Cc: michal@markovi.net, sndirsch@suse.com, oneukum@suse.com, tiwai@suse.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, mstaudt@suse.de, bernhard.rosenkranzer@linaro.org, philm@manjaro.org When the user requests a clean TTY via the SAK SysRq, that means he really wants to use the console. Let's disable the bootsplash, even if the request is not on a VT, as the user probably knows what he's doing and it's more helpful to get out of his way. Signed-off-by: Max Staudt Reviewed-by: Oliver Neukum --- drivers/tty/sysrq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 3ffc1ce29023..bc6a24c9dfa8 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -49,6 +49,7 @@ #include #include #include +#include #include #include @@ -104,6 +105,8 @@ static void sysrq_handle_SAK(int key) { struct work_struct *SAK_work = &vc_cons[fg_console].SAK_work; schedule_work(SAK_work); + + bootsplash_disable(); } static struct sysrq_key_op sysrq_SAK_op = { .handler = sysrq_handle_SAK, -- 2.12.3