Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys sys/pcu.h: New home for extern pcu_ops_md_defs.
details: https://anonhg.NetBSD.org/src/rev/b732999b00c3
branches: trunk
changeset: 372075:b732999b00c3
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Oct 26 23:38:57 2022 +0000
description:
sys/pcu.h: New home for extern pcu_ops_md_defs.
XXX Should split sys/pcu.h up into the part that sys/lwp.h needs,
which triggers rebuild of entire kernel, and the parts needed only by
subr_pcu.c and by MD FP/SIMD state management logic.
diffstat:
sys/kern/subr_pcu.c | 7 ++-----
sys/sys/pcu.h | 5 ++++-
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r fe5dbe0f66a4 -r b732999b00c3 sys/kern/subr_pcu.c
--- a/sys/kern/subr_pcu.c Wed Oct 26 23:38:05 2022 +0000
+++ b/sys/kern/subr_pcu.c Wed Oct 26 23:38:57 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_pcu.c,v 1.26 2022/02/08 12:59:16 riastradh Exp $ */
+/* $NetBSD: subr_pcu.c,v 1.27 2022/10/26 23:38:57 riastradh 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.26 2022/02/08 12:59:16 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pcu.c,v 1.27 2022/10/26 23:38:57 riastradh Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -85,9 +85,6 @@
*/
#define splpcu splhigh
-/* PCU operations structure provided by the MD code. */
-extern const pcu_ops_t * const pcu_ops_md_defs[];
-
/*
* pcu_available_p: true if lwp is allowed to use PCU state.
*/
diff -r fe5dbe0f66a4 -r b732999b00c3 sys/sys/pcu.h
--- a/sys/sys/pcu.h Wed Oct 26 23:38:05 2022 +0000
+++ b/sys/sys/pcu.h Wed Oct 26 23:38:57 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcu.h,v 1.13 2017/03/16 16:13:21 chs Exp $ */
+/* $NetBSD: pcu.h,v 1.14 2022/10/26 23:38:58 riastradh Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -86,6 +86,9 @@
void pcu_discard(const pcu_ops_t *, lwp_t *, bool);
bool pcu_valid_p(const pcu_ops_t *, const lwp_t *);
+/* PCU operations structure provided by the MD code. */
+extern const pcu_ops_t *const pcu_ops_md_defs[];
+
#else
#define pcu_switchpoint(l)
#define pcu_discard_all(l)
Home |
Main Index |
Thread Index |
Old Index