From 9f024c9cff8d0906f223ec33cea8470f4c6355eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Fri, 29 Sep 2017 15:24:05 +0200 Subject: [PATCH] misc: make sure Tizen notifier is executed before reset MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In case of RaspberryPi the CPU is reset by watchdog triggered from the bcm2835_restart_notifier_call function. Tizen notifier needs higher priority to be called before the watchdog. Change-Id: Ia7f6d895f6f40d1a9b4e57ad41b5bdb55c94f4f2 Signed-off-by: Łukasz Stelmach --- drivers/misc/tizen-inform-reboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/tizen-inform-reboot.c b/drivers/misc/tizen-inform-reboot.c index 7a1f16f..2e26186 100644 --- a/drivers/misc/tizen-inform-reboot.c +++ b/drivers/misc/tizen-inform-reboot.c @@ -61,7 +61,8 @@ static int inform_reboot_notifier(struct notifier_block *nb, } static struct notifier_block nb_inform_reboot_block = { - .notifier_call = inform_reboot_notifier + .notifier_call = inform_reboot_notifier, + .priority = 256, }; static int __init inform_reboot_init(void) -- 2.7.4