hikey: hikey960: Enable watchdog
am: 3dacd4459a

Change-Id: I393ce549459c3f5c226170c8637cd0d5ed4b18ae
diff --git a/init.common.rc b/init.common.rc
index 93f4f51..7e7dd77 100644
--- a/init.common.rc
+++ b/init.common.rc
@@ -19,6 +19,8 @@
     write /dev/cpuset/system-background/cpus 0-7
     write /dev/cpuset/top-app/cpus 0-7
 
+    start watchdogd
+
 on fs
     mount_all /fstab.${ro.hardware}
     setprop ro.crypto.fuse_sdcard false
@@ -99,3 +101,9 @@
      class main
      disabled
      oneshot
+
+# Set watchdog timer to 30 seconds and pet it every 10 seconds to get a 20 second margin
+service watchdogd /sbin/watchdogd 10 20
+    class core
+    oneshot
+    seclabel u:r:watchdogd:s0