Re: [PATCH 1/2] kernel/reboot.c: Add orderly_reboot for graceful reboot
From: Andrew Morton
Date: Wed Apr 01 2015 - 01:03:51 EST
On Wed, 01 Apr 2015 10:22:08 +0530 Anshuman Khandual <khandual@xxxxxxxxxxxxxxxxxx> 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 -
static char reboot_cmd = "/sbin/reboot";
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/