ANDROID: 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>
This commit is contained in:
parent
a9fab763ed
commit
64bfef432a
1 changed files with 1 additions and 2 deletions
|
@ -32,8 +32,7 @@ struct keyreset_state {
|
||||||
|
|
||||||
static void do_restart(struct work_struct *unused)
|
static void do_restart(struct work_struct *unused)
|
||||||
{
|
{
|
||||||
sys_sync();
|
orderly_reboot();
|
||||||
kernel_restart(NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_reset_fn(void *priv)
|
static void do_reset_fn(void *priv)
|
||||||
|
|
Loading…
Reference in a new issue