mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Since locking in kern/subr_prof.c is changed a bit, we need nomore of
time_lock spinlock exported. Approved by: jeff (mentor)
This commit is contained in:
parent
b7de7d87a0
commit
86a49dea5b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170468
@ -85,7 +85,7 @@ SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL)
|
||||
long cp_time[CPUSTATES];
|
||||
|
||||
/* Spin-lock protecting profiling statistics. */
|
||||
struct mtx time_lock;
|
||||
static struct mtx time_lock;
|
||||
|
||||
static int
|
||||
sysctl_kern_cp_time(SYSCTL_HANDLER_ARGS)
|
||||
|
@ -71,8 +71,6 @@ extern int bootverbose; /* nonzero to print verbose messages */
|
||||
|
||||
extern int maxusers; /* system tune hint */
|
||||
|
||||
extern struct mtx time_lock; /* time lock for profiling */
|
||||
|
||||
#ifdef INVARIANTS /* The option is always available */
|
||||
#define KASSERT(exp,msg) do { \
|
||||
if (__predict_false(!(exp))) \
|
||||
|
Loading…
Reference in New Issue
Block a user