FreeBSD Bugzilla – Attachment 161368 Details for
Bug 203166
[wbwd] Stop watchdog timer in attach routine if it is already started
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Make the change a loader option.
new-patch.txt (text/plain), 1.09 KB, created by
t_uemura
on 2015-09-25 05:19:35 UTC
(
hide
)
Description:
Make the change a loader option.
Filename:
MIME Type:
Creator:
t_uemura
Created:
2015-09-25 05:19:35 UTC
Size:
1.09 KB
patch
obsolete
>--- sys/dev/wbwd/wbwd.c.orig 2015-06-02 13:37:27.000000000 +0900 >+++ sys/dev/wbwd/wbwd.c 2015-09-25 14:03:35.000000000 +0900 >@@ -689,7 +689,7 @@ > struct sysctl_ctx_list *sctx; > struct sysctl_oid *soid; > unsigned long timeout; >- int error; >+ int error, wden; > > error = wb_probe_enable(dev, 0); > if (error > 0) >@@ -716,7 +716,8 @@ > sc->reg_2 = read_efdr_1(sc, 0); > > /* Print current state if bootverbose or watchdog already enabled. */ >- if (bootverbose || (sc->reg_timeout > 0x00)) >+ wden = (sc->reg_timeout > 0x00) ? 1 : 0; >+ if (bootverbose || wden) > wb_print_state(sc, "Before watchdog attach"); > > /* >@@ -760,7 +761,20 @@ > sc->ev_tag = EVENTHANDLER_REGISTER(watchdog_list, wb_watchdog_fn, sc, > 0); > >- if (bootverbose) >+ /* Disable until watchdogd(8) re-enables, if it's already enabled. */ >+ if (wden) { >+ unsigned long dob; >+ >+ if (TUNABLE_ULONG_FETCH("hw.wbwd.disable_on_boot", &dob)) { >+ if (dob > 0) { >+ error = wb_set_watchdog(sc, 0); >+ if (error) >+ return (error); >+ } >+ } >+ } >+ >+ if (bootverbose || wden) > wb_print_state(sc, "After watchdog attach"); > > return (0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 203166
:
161137
| 161368