Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/n8 Replace simple_lock(9).
details: https://anonhg.NetBSD.org/src/rev/a37cf7bc7c8f
branches: trunk
changeset: 777444:a37cf7bc7c8f
user: rmind <rmind%NetBSD.org@localhost>
date: Sun Feb 19 00:42:02 2012 +0000
description:
Replace simple_lock(9).
diffstat:
sys/dev/pci/n8/helper.h | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (34 lines):
diff -r 466faecd5dd7 -r a37cf7bc7c8f sys/dev/pci/n8/helper.h
--- a/sys/dev/pci/n8/helper.h Sun Feb 19 00:05:55 2012 +0000
+++ b/sys/dev/pci/n8/helper.h Sun Feb 19 00:42:02 2012 +0000
@@ -84,10 +84,10 @@
#include "n8_enqueue_common.h"
#endif
+#include <sys/types.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
-#include <sys/simplelock.h>
#include "n8_enqueue_common.h"
/* Macros for copying data to and from user space */
@@ -100,14 +100,12 @@
/* ABSTRACT ATOMIC RESOURCE LOCK */
/* typedef int ATOMICLOCK_t; */
-typedef struct simplelock ATOMICLOCK_t;
-#define N8_AtomicLock(x) simple_lock(&x)
-#define N8_AtomicUnlock(x) simple_unlock(&x)
-#define N8_AtomicLockInit(x) simple_lock_init(&x)
+typedef __cpu_simple_lock_t ATOMICLOCK_t;
+#define N8_AtomicLock(x) __cpu_simple_lock(&x)
+#define N8_AtomicUnlock(x) __cpu_simple_unlock(&x)
+#define N8_AtomicLockInit(x) __cpu_simple_lock_init(&x)
#define N8_AtomicLockDel(x)
-
-
/* ABSTRACT BLOCKING MECHANISM */
#define wait_queue_head_t atomic_t
#define init_waitqueue_head(A)
Home |
Main Index |
Thread Index |
Old Index