pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


imx2_wdt_set_pretimeout
Posted by Anonymous on Tue 21st Jul 2020 15:11
raw | new post

  1. [tscherer@ws067:watchdog] master(+4/-0) 1m36s ± gd
  2. diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c
  3. index f07850d2c977..a5dd8024dd6e 100644
  4. --- a/drivers/watchdog/imx2_wdt.c
  5. +++ b/drivers/watchdog/imx2_wdt.c
  6. @@ -306,6 +306,10 @@ static int __init imx2_wdt_probe(struct platform_device *pdev)
  7.         watchdog_set_restart_priority(wdog, 128);
  8.         watchdog_init_timeout(wdog, timeout, &pdev->dev);
  9.  
  10. +       if (IS_ENABLED(CONFIG_WATCHDOG_PRETIMEOUT_GOV)) {
  11. +               imx2_wdt_set_pretimeout(wdog, 3);
  12. +       }
  13. +
  14.         if (imx2_wdt_is_running(wdev)) {
  15.                 imx2_wdt_set_timeout(wdog, wdog->timeout);
  16.                 set_bit(WDOG_HW_RUNNING, &wdog->status);

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at