Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern fix assertion failure in timer_intr. CLOCK_REALTIM...
details: https://anonhg.NetBSD.org/src/rev/79af3b4975ce
branches: trunk
changeset: 763834:79af3b4975ce
user: yamt <yamt%NetBSD.org@localhost>
date: Tue Apr 05 00:27:35 2011 +0000
description:
fix assertion failure in timer_intr. CLOCK_REALTIME timers can be on
timer_queue.
diffstat:
sys/kern/kern_time.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a7c5962b56dc -r 79af3b4975ce sys/kern/kern_time.c
--- a/sys/kern/kern_time.c Mon Apr 04 22:50:36 2011 +0000
+++ b/sys/kern/kern_time.c Tue Apr 05 00:27:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_time.c,v 1.166 2010/12/17 22:08:18 yamt Exp $ */
+/* $NetBSD: kern_time.c,v 1.167 2011/04/05 00:27:35 yamt Exp $ */
/*-
* Copyright (c) 2000, 2004, 2005, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.166 2010/12/17 22:08:18 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.167 2011/04/05 00:27:35 yamt Exp $");
#include <sys/param.h>
#include <sys/resourcevar.h>
@@ -1282,7 +1282,7 @@
pts->pts_timers[index] = NULL;
if (pt->pt_type == CLOCK_REALTIME)
callout_halt(&pt->pt_ch, &timer_lock);
- else if (pt->pt_queued)
+ if (pt->pt_queued)
TAILQ_REMOVE(&timer_queue, pt, pt_chain);
mutex_spin_exit(&timer_lock);
if (pt->pt_type == CLOCK_REALTIME)
Home |
Main Index |
Thread Index |
Old Index