am a6fbc0f9
: Merge "Replace __reboot call with syscall"
* commit 'a6fbc0f9f49b797f4a67ea49f37681c08ab41111': Replace __reboot call with syscall
This commit is contained in:
commit
486ebac551
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
|
||||
#include <unistd.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -121,7 +122,7 @@ int android_reboot(int cmd, int flags, char *arg)
|
|||
break;
|
||||
|
||||
case ANDROID_RB_RESTART2:
|
||||
ret = __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2,
|
||||
ret = syscall(__NR_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2,
|
||||
LINUX_REBOOT_CMD_RESTART2, arg);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue