Module Name: src Committed By: christos Date: Sat Jan 1 15:10:53 UTC 2022
Modified Files: src/sys/kern: subr_pcu.c Log Message: Always declare function used in KASSERT To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/kern/subr_pcu.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/subr_pcu.c diff -u src/sys/kern/subr_pcu.c:1.24 src/sys/kern/subr_pcu.c:1.25 --- src/sys/kern/subr_pcu.c:1.24 Fri Aug 7 14:46:00 2020 +++ src/sys/kern/subr_pcu.c Sat Jan 1 10:10:53 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_pcu.c,v 1.24 2020/08/07 18:46:00 christos Exp $ */ +/* $NetBSD: subr_pcu.c,v 1.25 2022/01/01 15:10:53 christos Exp $ */ /*- * Copyright (c) 2011, 2014 The NetBSD Foundation, Inc. @@ -52,7 +52,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: subr_pcu.c,v 1.24 2020/08/07 18:46:00 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_pcu.c,v 1.25 2022/01/01 15:10:53 christos Exp $"); #include <sys/param.h> #include <sys/cpu.h> @@ -88,7 +88,6 @@ typedef struct { /* PCU operations structure provided by the MD code. */ extern const pcu_ops_t * const pcu_ops_md_defs[]; -#ifdef DIAGNOSTIC /* * pcu_available_p: true if lwp is allowed to use PCU state. */ @@ -99,7 +98,6 @@ pcu_available_p(struct lwp *l) /* XXX Not sure this is safe unless l is locked! */ return (l->l_flag & (LW_SYSTEM|LW_SYSTEM_FPU)) != LW_SYSTEM; } -#endif /* * pcu_switchpoint: release PCU state if the LWP is being run on another CPU.