Module Name: src
Committed By: rmind
Date: Sun Feb 19 00:42:02 UTC 2012
Modified Files:
src/sys/dev/pci/n8: helper.h
Log Message:
Replace simple_lock(9).
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pci/n8/helper.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/n8/helper.h
diff -u src/sys/dev/pci/n8/helper.h:1.2 src/sys/dev/pci/n8/helper.h:1.3
--- src/sys/dev/pci/n8/helper.h:1.2 Wed May 18 01:02:44 2011
+++ src/sys/dev/pci/n8/helper.h Sun Feb 19 00:42:02 2012
@@ -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)