Re: [RFC] [PATCH] change reboot_notifier to platform-shutdown method.

From: Mike Frysinger
Date: Tue Jan 19 2010 - 17:48:31 EST


On Tue, Jan 19, 2010 at 16:22, Wim Van Sebroeck wrote:
> Â Â[WATCHDOG] change reboot_notifier to platform-shutdown method.
>
> Â ÂPlatform device drivers can use the .shutdown method to handle soft
> Â Âshutdown's instead of reboot_notifier's.
>
> --- a/drivers/watchdog/bfin_wdt.c
> +++ b/drivers/watchdog/bfin_wdt.c

seems to work fine on my Blackfin boards:
root:/> dmesg -n 8
root:/> reboot
bfin_wdt_write:222: here i am
bfin_wdt_keepalive:88: here i am
bfin_wdt_release:196: here i am
bfin_wdt_stop:100: here i am
bfin_wdt_shutdown:418: here i am
bfin_wdt_stop:100: here i am
Restarting system.ï

and i like things that shrink code:
- 1792 176 20 1988 7c4 drivers/watchdog/bfin_wdt.o
+ 1676 164 20 1860 744 drivers/watchdog/bfin_wdt.o

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/