Fix a dodgy bit of code in the PERFCTRS case.

This commit is contained in:
ad 2007-10-03 11:05:58 +00:00
parent 74dc12ed8b
commit b4bc650271

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_clock.c,v 1.110 2007/08/09 07:36:18 pooka Exp $ */ /* $NetBSD: kern_clock.c,v 1.111 2007/10/03 11:05:58 ad Exp $ */
/*- /*-
* Copyright (c) 2000, 2004, 2006, 2007 The NetBSD Foundation, Inc. * Copyright (c) 2000, 2004, 2006, 2007 The NetBSD Foundation, Inc.
@ -76,7 +76,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.110 2007/08/09 07:36:18 pooka Exp $"); __KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.111 2007/10/03 11:05:58 ad Exp $");
#include "opt_ntp.h" #include "opt_ntp.h"
#include "opt_multiprocessor.h" #include "opt_multiprocessor.h"
@ -947,13 +947,9 @@ proftick(struct clockframe *frame)
} }
} }
#endif #endif
#ifdef PROC_PC #ifdef LWP_PC
if (p != NULL) { if (p != NULL && (p->p_stflag & PST_PROFIL) != 0)
mutex_spin_enter(&p->p_stmutex); addupc_intr(l, LWP_PC(p));
if (p->p_stflag & PST_PROFIL))
addupc_intr(l, PROC_PC(p));
mutex_spin_exit(&p->p_stmutex);
}
#endif #endif
} }
} }