Module Name:    src
Committed By:   skrll
Date:           Sat Oct 25 11:35:15 UTC 2014

Modified Files:
        src/sys/external/bsd/vchiq/dist/interface/compat: vchi_bsd.h

Log Message:
G/C some unused code.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
    src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.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/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h
diff -u src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h:1.8 src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h:1.9
--- src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h:1.8	Tue Sep  2 09:55:48 2014
+++ src/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h	Sat Oct 25 11:35:15 2014
@@ -53,46 +53,6 @@
 #define copy_to_user(to, from, n)	copyout((from), (to), (n))
 
 /*
- * Bit API
- */
-
-static __inline int
-test_and_set_bit(int nr, volatile void *addr)
-{
-	volatile uint32_t *val;
-	uint32_t mask, old;
-
-	val = (volatile uint32_t *)addr;
-	mask = 1 << nr;
-
-	do {
-		old = *val;
-		if ((old & mask) != 0)
-			break;
-	} while (atomic_cas_uint(val, old, old | mask) != old);
-
-	return old & mask;
-}
-
-static __inline__ int
-test_and_clear_bit(int nr, volatile void *addr)
-{
-	volatile uint32_t *val;
-	uint32_t mask, old;
-
-	val = (volatile uint32_t *)addr;
-	mask = 1 << nr;
-
-	do {
-		old = *val;
-		if ((old & mask) == 0)
-			break;
-	} while (atomic_cas_uint(val, old, old & ~mask) != old);
-
-	return old & mask;
-}
-
-/*
  * Atomic API
  */
 typedef volatile unsigned int atomic_t;

Reply via email to