Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon sysmon_task_queue_sched needs to RUN_ONCE(tq_...
details: https://anonhg.NetBSD.org/src/rev/be9617a6a7b3
branches: trunk
changeset: 337799:be9617a6a7b3
user: martin <martin%NetBSD.org@localhost>
date: Tue Apr 28 11:58:49 2015 +0000
description:
sysmon_task_queue_sched needs to RUN_ONCE(tq_preinit) as well, it can
be called from sysmon_envsys_register() early.
diffstat:
sys/dev/sysmon/sysmon_taskq.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 23202362dc97 -r be9617a6a7b3 sys/dev/sysmon/sysmon_taskq.c
--- a/sys/dev/sysmon/sysmon_taskq.c Tue Apr 28 11:15:55 2015 +0000
+++ b/sys/dev/sysmon/sysmon_taskq.c Tue Apr 28 11:58:49 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_taskq.c,v 1.18 2015/04/27 07:51:28 pgoyette Exp $ */
+/* $NetBSD: sysmon_taskq.c,v 1.19 2015/04/28 11:58:49 martin Exp $ */
/*
* Copyright (c) 2001, 2003 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_taskq.c,v 1.18 2015/04/27 07:51:28 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_taskq.c,v 1.19 2015/04/28 11:58:49 martin Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -212,6 +212,8 @@
{
struct sysmon_task *st, *lst;
+ (void)RUN_ONCE(&once_tq, tq_preinit);
+
if (sysmon_task_queue_lwp == NULL)
aprint_debug("WARNING: Callback scheduled before sysmon "
"task queue thread present\n");
Home |
Main Index |
Thread Index |
Old Index