OSDN Git Service

input: keyreset: switch to orderly_reboot
authorEric Ernst <eric.ernst@linux.intel.com>
Fri, 2 Sep 2016 23:12:06 +0000 (16:12 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Tue, 20 Sep 2016 17:39:47 +0000 (17:39 +0000)
commitfa42b29f530e15078b4e3070fd62e310211ee3de
treec8df1788d33b7218628383fbd9aa40ed535be7ae
parent17e35cbf1863e5cf74425594056ef28b18f762bf
input: keyreset: switch to orderly_reboot

Prior restart function would make a call to sys_sync and then
execute a kernel reset.  Rather than call the sync directly,
thus necessitating this driver to be builtin, call orderly_reboot,
which will take care of the file system sync.

Note: since CONFIG_INPUT Kconfig is tristate, this driver can be built
as module, despite being marked bool.

Signed-off-by: Eric Ernst <eric.ernst@linux.intel.com>
drivers/input/keyreset.c