From: Łukasz Stelmach Date: Fri, 29 Sep 2017 13:24:05 +0000 (+0200) Subject: misc: make sure Tizen notifier is executed before reset X-Git-Tag: submit/tizen/20200402.094258~229 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f024c9cff8d0906f223ec33cea8470f4c6355eb;p=platform%2Fkernel%2Flinux-rpi.git misc: make sure Tizen notifier is executed before reset 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 --- 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)