OpenBSD CVS

CVS log for src/sys/kern/kern_watchdog.c


[BACK] Up to [local] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 14 01:58:27 2022 UTC (21 months, 4 weeks ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.15: +1 -3 lines
Diff to previous 1.15 (colored)

remove unneeded includes in sys/kern
ok mpi@ miod@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jan 9 20:59:23 2021 UTC (3 years, 5 months ago) by gnezdo
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.14: +5 -3 lines
Diff to previous 1.14 (colored)

Enforce range with sysctl_int_bounded in sysctl_wdog

OK millert@

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 5 22:10:50 2019 UTC (4 years, 11 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Use timeout_add_msec(9)

Although the period is specified in seconds, convert to milliseconds so
uneven periods are not truncated after integer division by two.

Input and OK cheloha

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 9 17:58:44 2017 UTC (7 years, 5 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.12: +1 -23 lines
Diff to previous 1.12 (colored)

Revert previous, it's a documented behavior and people might rely on it.

Pointed by deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 9 17:21:42 2017 UTC (7 years, 5 months ago) by mpi
Branch: MAIN
Changes since 1.11: +23 -1 lines
Diff to previous 1.11 (colored)

Stop and restart the watchdog timer when entering and leaving ddb(4).

From Christian Ludwig.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Dec 10 12:27:57 2014 UTC (9 years, 6 months ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.10: +4 -13 lines
Diff to previous 1.10 (colored)

Convert watchdog(4) devices to use autoconf(9) framework.

ok deraadt, tests on glxpcib and ok mpi

Revision 1.10 / (download) - annotate - [select for diffs], Sun Sep 14 14:17:25 2014 UTC (9 years, 8 months ago) by jsg
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

remove uneeded proc.h includes
ok mpi@ kspillner@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 17 22:32:01 2012 UTC (11 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.8: +5 -6 lines
Diff to previous 1.8 (colored)

Swap arguments to wdog_register() since it is nicer, and prepare
wdog_shutdown() for external usage.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Apr 20 22:05:43 2010 UTC (14 years, 1 month ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

remove proc.h include from uvm_map.h.  This has far reaching effects, as
sysctl.h was reliant on this particular include, and many drivers included
sysctl.h unnecessarily.  remove sysctl.h or add proc.h as needed.
ok deraadt

Revision 1.7 / (download) - annotate - [select for diffs], Thu Dec 21 12:47:57 2006 UTC (17 years, 5 months ago) by mbalmer
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.6: +10 -2 lines
Diff to previous 1.6 (colored)

Change the semantics of kern.watchdog.auto slightly: If kern.watchdog.auto is
set to 0, the watchdog will not be retriggered by the kernel *and* it will not
be disabled at system shutdown time (before it got disabled at system shutdown
time.)

ok markus mickey mk

Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 19 21:43:13 2006 UTC (17 years, 8 months ago) by mk
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

A bit of microoptimisation that doesn't hurt readability:  Don't do
timeout_del() if we're going to timeout_add() in the next block.

ok dlg (a while ago), markus

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 12 21:31:23 2006 UTC (17 years, 11 months ago) by mk
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Small KNF.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 19 09:55:32 2006 UTC (18 years, 1 month ago) by dlg
Branch: MAIN
Changes since 1.3: +4 -10 lines
Diff to previous 1.3 (colored)

wdog_init is only called from wdog_register, so fold them in together.

from mk. ok markus@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Apr 18 13:07:00 2006 UTC (18 years, 1 month ago) by dlg
Branch: MAIN
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored)

set the params that govern watchdog behaviour back to defaults when the
wdog is shut down.

from mk. ok markus@

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 28 00:14:29 2005 UTC (18 years, 6 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.1: +3 -8 lines
Diff to previous 1.1 (colored)

ansi/deregister.
'go for it' deraadt@

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jan 21 16:59:23 2003 UTC (21 years, 4 months ago) by markus
Branch: MAIN
CVS Tags: UBC_SYNC_A, UBC, SMP_SYNC_B, SMP_SYNC_A, SMP, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3

add kern.watchdog sysctl and generic watchdog interface;
based on feedback and discussions with mickey, henric, fgsch and jakob.
ok art@, mickey@, jakob@, henric@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.