Improve logs at reboot time
authorGuillaume Betous <guillaumeX.betous@intel.com>
Fri, 11 May 2012 15:38:10 +0000 (17:38 +0200)
committerMonnier, Olivier <olivier.monnier@intel.com>
Wed, 23 May 2012 20:19:40 +0000 (13:19 -0700)
BZ: 30330

Add message for reset type.

Change-Id: I8283f8c851e5ea92709cc2a4f744f73633b47c45
Signed-off-by: Guillaume Betous <guillaumeX.betous@intel.com>
Reviewed-on: http://android.intel.com:8080/48465
Reviewed-by: Monnier, Olivier <olivier.monnier@intel.com>
Tested-by: Monnier, Olivier <olivier.monnier@intel.com>
arch/x86/platform/intel-mid/intel-mid.c

index 613380e..4c52bd7 100644 (file)
@@ -280,10 +280,13 @@ static void intel_mid_reboot(void)
                pr_debug("intel_scu_fw_update: IFWI upgrade failed...\n");
                BUG();
        }
-       if (force_cold_boot)
+       if (force_cold_boot) {
+               pr_info("Immediate COLD BOOT\n");
                intel_scu_ipc_simple_command(IPCMSG_COLD_BOOT, 0);
-       else
+       } else {
+               pr_info("Immediate COLD RESET\n");
                intel_scu_ipc_simple_command(IPCMSG_COLD_RESET, 0);
+       }
 }
 
 static void intel_mid_emergency_reboot(char *cmd)