apps/shell/tash_command : Apply Reboot Reason macro
In PR#5024, there are reboot reason macros instead of using prctl.
#include <apps/builtin.h>
#endif
#ifdef CONFIG_SYSTEM_REBOOT_REASON
-#include <sys/prctl.h>
#include <tinyara/reboot_reason.h>
#endif
#include "tash_internal.h"
@@ -487,7 +486,7 @@ static int tash_reboot(int argc, char **argv)
* reset the board due to some constraints.
*/
#ifdef CONFIG_SYSTEM_REBOOT_REASON
- prctl(PR_REBOOT_REASON_WRITE, REBOOT_SYSTEM_USER_INTENDED);
+ WRITE_REBOOT_REASON(REBOOT_SYSTEM_USER_INTENDED);
#endif
boardctl(BOARDIOC_RESET, EXIT_SUCCESS);
