misc: make sure Tizen notifier is executed before reset
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 29 Sep 2017 13:24:05 +0000 (15:24 +0200)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 7 Feb 2022 07:09:31 +0000 (16:09 +0900)
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 <l.stelmach@samsung.com>
drivers/misc/tizen-inform-reboot.c

index 7a1f16f..2e26186 100644 (file)
@@ -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)