The last _KERNEL -> _HARDKERNEL in locking operations.
This commit is contained in:
parent
73547ee171
commit
ad2cb9c529
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lock.h,v 1.24 2008/04/28 20:23:40 martin Exp $ */
|
||||
/* $NetBSD: lock.h,v 1.25 2009/01/15 01:20:31 pooka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000, 2006 The NetBSD Foundation, Inc.
|
||||
@ -36,6 +36,8 @@
|
||||
#ifndef _X86_LOCK_H_
|
||||
#define _X86_LOCK_H_
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
static __inline int
|
||||
__SIMPLELOCK_LOCKED_P(__cpu_simple_lock_t *__ptr)
|
||||
{
|
||||
@ -62,7 +64,7 @@ __cpu_simple_lock_clear(__cpu_simple_lock_t *__ptr)
|
||||
*__ptr = __SIMPLELOCK_UNLOCKED;
|
||||
}
|
||||
|
||||
#ifdef _KERNEL
|
||||
#ifdef _HARDKERNEL
|
||||
|
||||
#include <machine/cpufunc.h>
|
||||
|
||||
@ -179,6 +181,6 @@ __cpu_simple_unlock(__cpu_simple_lock_t *lockp)
|
||||
*lockp = __SIMPLELOCK_UNLOCKED;
|
||||
}
|
||||
|
||||
#endif /* _KERNEL */
|
||||
#endif /* _HARDKERNEL */
|
||||
|
||||
#endif /* _X86_LOCK_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user