Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern fix rumpkernel build failure
details: https://anonhg.NetBSD.org/src/rev/4a9734beb413
branches: trunk
changeset: 1022927:4a9734beb413
user: ryo <ryo%NetBSD.org@localhost>
date: Sat Aug 14 21:17:11 2021 +0000
description:
fix rumpkernel build failure
diffstat:
sys/kern/kern_clock.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 68d3fbeb789f -r 4a9734beb413 sys/kern/kern_clock.c
--- a/sys/kern/kern_clock.c Sat Aug 14 20:43:05 2021 +0000
+++ b/sys/kern/kern_clock.c Sat Aug 14 21:17:11 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_clock.c,v 1.145 2021/08/14 17:51:20 ryo Exp $ */
+/* $NetBSD: kern_clock.c,v 1.146 2021/08/14 21:17:11 ryo Exp $ */
/*-
* Copyright (c) 2000, 2004, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.145 2021/08/14 17:51:20 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.146 2021/08/14 21:17:11 ryo Exp $");
#ifdef _KERNEL_OPT
#include "opt_dtrace.h"
@@ -457,7 +457,7 @@
/*
* Kernel statistics are just like addupc_intr, only easier.
*/
-#ifdef MULTIPROCESSOR
+#if defined(MULTIPROCESSOR) && !defined(_RUMPKERNEL)
g = curcpu()->ci_gmon;
if (g != NULL &&
profsrc == PROFSRC_CLOCK && g->state == GMON_PROF_ON) {
Home |
Main Index |
Thread Index |
Old Index