From 32c5d76875c99c182d6a1b5851893c81f0e48984 Mon Sep 17 00:00:00 2001 From: ad Date: Sun, 11 May 2008 14:42:18 +0000 Subject: [PATCH] Fix locking botch. Pointed out by kardel@. --- sys/kern/kern_tc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index b9c0048d743c..2347601b1786 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_tc.c,v 1.35 2008/05/08 18:56:58 ad Exp $ */ +/* $NetBSD: kern_tc.c,v 1.36 2008/05/11 14:42:18 ad Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ #include /* __FBSDID("$FreeBSD: src/sys/kern/kern_tc.c,v 1.166 2005/09/19 22:16:31 andre Exp $"); */ -__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.35 2008/05/08 18:56:58 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_tc.c,v 1.36 2008/05/11 14:42:18 ad Exp $"); #include "opt_ntp.h" @@ -218,7 +218,6 @@ sysctl_kern_timecounter_choice(SYSCTLFN_ARGS) error = copyout(buf, where, slen + 1); mutex_spin_enter(&timecounter_lock); if (mods != timecounter_mods) { - mutex_spin_exit(&timecounter_lock); goto retry; } spc = " ";