Module Name: src Committed By: riastradh Date: Wed Feb 28 04:14:47 UTC 2024
Modified Files: src/sys/kern: kern_heartbeat.c Log Message: heartbeat(9): Restore still-applicable comment nixed in last commit. The nesting depth is stored in ci_heartbeat_suspend which is 32-bit. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/kern/kern_heartbeat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_heartbeat.c diff -u src/sys/kern/kern_heartbeat.c:1.11 src/sys/kern/kern_heartbeat.c:1.12 --- src/sys/kern/kern_heartbeat.c:1.11 Wed Feb 28 04:12:59 2024 +++ src/sys/kern/kern_heartbeat.c Wed Feb 28 04:14:47 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_heartbeat.c,v 1.11 2024/02/28 04:12:59 riastradh Exp $ */ +/* $NetBSD: kern_heartbeat.c,v 1.12 2024/02/28 04:14:47 riastradh Exp $ */ /*- * Copyright (c) 2023 The NetBSD Foundation, Inc. @@ -82,7 +82,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_heartbeat.c,v 1.11 2024/02/28 04:12:59 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_heartbeat.c,v 1.12 2024/02/28 04:14:47 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_ddb.h" @@ -132,8 +132,8 @@ void *heartbeat_sih __read_mostly; * * Called after the current CPU has been marked offline but before * it has stopped running, or after IPL has been raised for - * polling-mode console input. Nestable. Reversed by - * heartbeat_resume. + * polling-mode console input. Nestable (but only 2^32 times, so + * don't do this in a loop). Reversed by heartbeat_resume. * * Caller must be bound to the CPU, i.e., curcpu_stable() must be * true. This function does not assert curcpu_stable() since it