s390/ctrlchar: improve handling of magic sysrequests
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Tue, 18 Aug 2015 15:42:39 +0000 (17:42 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Aug 2015 15:20:44 +0000 (17:20 +0200)
commitab7373bf235ede864a72f0d2f8f9a21a1748c4a2
tree3c4f4cc4965006f31f5556bc2c4d4f3c8633e8b4
parentde9c35f32410c225c585535a321ce591ea001645
s390/ctrlchar: improve handling of magic sysrequests

Extract the sysrq handling from the ctrlchar_handle() into a separate
function that can be directly used by other users.

Introduce a new sysrq_work structure to embed the work_struct and to
specify the magic sysrq function to be invoked.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/ctrlchar.c
drivers/s390/char/ctrlchar.h