[PATCH 1/2] kernel/reboot.c: Add orderly_reboot for graceful reboot

Andrew Morton akpm at linux-foundation.org
Wed Apr 1 16:03:26 AEDT 2015


On Wed, 01 Apr 2015 10:22:08 +0530 Anshuman Khandual <khandual at linux.vnet.ibm.com> wrote:

> >  char poweroff_cmd[POWEROFF_CMD_PATH_LEN] = "/sbin/poweroff";
> > +char reboot_cmd[POWEROFF_CMD_PATH_LEN] = "/sbin/reboot";
> 
> Should not we declare one more REBOOT_CMD_PATH_LEN to make it cleaner.

It doesn't really seem necessary - they'll have the same value anyway.

But if you aren't going to implement the sysctl it isn't needed at all -
just do

static char reboot_cmd[] = "/sbin/reboot";



More information about the Linuxppc-dev mailing list