htcleo: pm: add HD2 off-mode Alarm Clock for cLK (Credit goes to kokotas and Rick_1995)

Visit http://forum.xda-developers.com/showthread.php?t=1990111 for more info.
This commit is contained in:
tytung
2012-11-17 15:28:02 +08:00
parent bba549a7dc
commit 9031c37be6

View File

@@ -777,6 +777,9 @@ static int msm_reboot_call(struct notifier_block *this, unsigned long code, void
} else if (!strncmp(cmd, "oem-", 4)) {
unsigned code = simple_strtoul(cmd + 4, 0, 16) & 0xff;
restart_reason = 0x6f656d00 | code;
} else if (!strncmp(cmd, "S", 1)) {
unsigned code = simple_strtoul(cmd + 1, 0, 16) & 0x00ffffff;
restart_reason = 0x53000000 | code;
} else if (!strcmp(cmd, "force-hard")) {
restart_reason = 0x776655AA;
} else {