Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/vchiq/dist/interface/compat G/C some unused...



details:   https://anonhg.NetBSD.org/src/rev/6855224e0ac7
branches:  trunk
changeset: 803391:6855224e0ac7
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Oct 25 11:35:15 2014 +0000

description:
G/C some unused code.

diffstat:

 sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h |  40 -----------------
 1 files changed, 0 insertions(+), 40 deletions(-)

diffs (50 lines):

diff -r 95b6d79819ca -r 6855224e0ac7 sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h
--- a/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h   Sat Oct 25 10:58:12 2014 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h   Sat Oct 25 11:35:15 2014 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index