am 486ebac5: am a6fbc0f9: Merge "Replace __reboot call with syscall"
* commit '486ebac551d64bb8698bbc805f71f5644d2c4917':
Replace __reboot call with syscall
diff --git a/libcutils/android_reboot.c b/libcutils/android_reboot.c
index 16f82bb..aef3054 100644
--- a/libcutils/android_reboot.c
+++ b/libcutils/android_reboot.c
@@ -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>
@@ -118,7 +119,7 @@
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;