intel_scu_watchdog: define CONFIG_DISABLE_SCU_WATCHDOG=y
authorBenoit Romieu <benoit.romieu@intel.com>
Wed, 28 Mar 2012 15:11:28 +0000 (17:11 +0200)
committerbuildbot <buildbot@intel.com>
Thu, 5 Apr 2012 17:00:25 +0000 (10:00 -0700)
BZ: 27691

Enable the ability to disable the kernel watchdog by cmdline.
For this purpose, add intel_scu_watchdog.disable_kernel_watchdog=1 to
the cmdline. Needed for debug (breakpoints)

Change-Id: Ib04d73ee9063487865720219cd0341b613eee416
Reviewed-on: http://android.intel.com:8080/41376
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Romieu, Benoit <benoit.romieu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/configs/i386_mfld_defconfig
drivers/watchdog/Kconfig
drivers/watchdog/intel_scu_watchdog.c

index 1a3d14f..eedce6d 100644 (file)
@@ -1636,6 +1636,7 @@ CONFIG_WATCHDOG=y
 # CONFIG_WAFER_WDT is not set
 # CONFIG_I6300ESB_WDT is not set
 CONFIG_INTEL_SCU_WATCHDOG=y
+CONFIG_DISABLE_SCU_WATCHDOG=y
 # CONFIG_ITCO_WDT is not set
 # CONFIG_IT8712F_WDT is not set
 # CONFIG_IT87_WDT is not set
index d7f0917..2db643f 100644 (file)
@@ -542,6 +542,15 @@ config INTEL_SCU_WATCHDOG
 
          To compile this driver as a module, choose M here.
 
+config DISABLE_SCU_WATCHDOG
+       bool "De-activate Intel SCU Watchdog by cmdline for Mobile Platforms"
+       depends on INTEL_SCU_WATCHDOG
+       ---help---
+         De-activate the watchdog by cmdline for Intel Mobile Platforms.
+         This allows to use breakpoints without resetting.
+
+         Only for debug purpose.
+
 config ITCO_WDT
        tristate "Intel TCO Timer/Watchdog"
        depends on (X86 || IA64) && PCI
index bc1d820..935379b 100644 (file)
@@ -747,7 +747,7 @@ static int __init intel_scu_watchdog_init(void)
 #endif
 
        if (disable_kernel_watchdog) {
-               pr_debug(PFX "disabling the timer\n");
+               pr_err(PFX "%s: Disable kernel watchdog\n", __func__);
 
                /* Make sure timer is stopped */
                ret = intel_scu_stop();