Remove tas()
authorJeff Dike <jdike@addtoit.com>
Tue, 8 May 2007 07:34:59 +0000 (00:34 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:20 +0000 (11:15 -0700)
tas() has no users, so get rid of it.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: <linux-arch@vger.kernel.org>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
19 files changed:
include/asm-alpha/system.h
include/asm-arm/system.h
include/asm-arm26/system.h
include/asm-blackfin/system.h
include/asm-h8300/system.h
include/asm-i386/system.h
include/asm-m32r/system.h
include/asm-m68k/system.h
include/asm-m68knommu/system.h
include/asm-mips/system.h
include/asm-powerpc/system.h
include/asm-ppc/system.h
include/asm-sh/system.h
include/asm-sh64/system.h
include/asm-sparc/system.h
include/asm-sparc64/system.h
include/asm-v850/system.h
include/asm-x86_64/system.h
include/asm-xtensa/system.h

index 42959c356456554fc73c75da0f5ad62d6e413b51..cf1021a97b2ea947969f3f3344b0261e907e87ba 100644 (file)
@@ -548,9 +548,6 @@ __xchg_u64_local(volatile long *m, unsigned long val)
                sizeof(*(ptr))); \
   })
 
-#define tas(ptr) (xchg((ptr),1))
-
-
 /* 
  * Atomic compare and exchange.  Compare OLD with MEM, if identical,
  * store NEW in MEM.  Return the initial value in MEM.  Success is
index 25f84da4a97e63454fb4632c79daeae20ffdde9f..f2da3b6e3a837e89369625fd6c6cd4f113e9212b 100644 (file)
@@ -103,8 +103,6 @@ void hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int,
 #define xchg(ptr,x) \
        ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
 
-#define tas(ptr) (xchg((ptr),1))
-
 extern asmlinkage void __backtrace(void);
 extern asmlinkage void c_backtrace(unsigned long fp, int pmode);
 
index 00ae32aa1dbaf2f1ad0ac3e86d66b55d09581b1b..4703593b3bb52212c5118a4b113380960784c861 100644 (file)
@@ -52,8 +52,6 @@ void hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int,
 #define xchg(ptr,x) \
        ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
 
-#define tas(ptr) (xchg((ptr),1))
-
 extern asmlinkage void __backtrace(void);
 
 #define set_cr(x)                                      \
index 758bac7c1e7453db57bc077bba42ff96b08dec2d..b5bf6e7cb5e8caaae95ef37e70a610d1bf0daac5 100644 (file)
@@ -138,7 +138,6 @@ extern unsigned long irq_flags;
 #endif
 
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
-#define tas(ptr) ((void)xchg((ptr),1))
 
 struct __xchg_dummy {
        unsigned long a[100];
index 5084a9d4292254f28a638302cc3bc0eb9b609069..7807018f85002cd201db14dc74926f469b3c11b5 100644 (file)
@@ -98,7 +98,6 @@ asmlinkage void resume(void);
 #endif
 
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
-#define tas(ptr) (xchg((ptr),1))
 
 struct __xchg_dummy { unsigned long a[100]; };
 #define __xg(x) ((volatile struct __xchg_dummy *)(x))
index e0454afb950f1f0dc669ef7fc431ca8887d7349d..a4ed087ac0aead8386739d778db114b31e52ecef 100644 (file)
@@ -197,8 +197,6 @@ static inline unsigned long get_limit(unsigned long segment)
 
 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr))))
 
-#define tas(ptr) (xchg((ptr),1))
-
 struct __xchg_dummy { unsigned long a[100]; };
 #define __xg(x) ((struct __xchg_dummy *)(x))
 
index 99ee09889ff78578ca1c913e1c75a1ce4b65f319..06cdece358653bf249ac001f250287cc8852f939 100644 (file)
@@ -122,8 +122,6 @@ static inline void local_irq_disable(void)
 #define xchg(ptr,x) \
        ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
 
-#define tas(ptr)       (xchg((ptr),1))
-
 #ifdef CONFIG_SMP
 extern void  __xchg_called_with_bad_pointer(void);
 #endif
index 243dd13e6bfc0895fcf0cfcd7081ac333a2f07bf..198878b53a618c92cf5f37261b0476807754c722 100644 (file)
@@ -88,7 +88,6 @@ static inline int irqs_disabled(void)
 
 
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
-#define tas(ptr) (xchg((ptr),1))
 
 struct __xchg_dummy { unsigned long a[100]; };
 #define __xg(x) ((volatile struct __xchg_dummy *)(x))
index 2a814498672d72408c149f4d64580232f697c5df..5e5ed18bb78f54185da3d69ecfc0b1e9fd2373f7 100644 (file)
@@ -120,7 +120,6 @@ asmlinkage void resume(void);
 #endif
 
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
-#define tas(ptr) (xchg((ptr),1))
 
 struct __xchg_dummy { unsigned long a[100]; };
 #define __xg(x) ((volatile struct __xchg_dummy *)(x))
index d53dd72455615dc7ae443e74cb7d5216f9a4fb27..30f23a2b46ca0c5d32afd99bff1a52ff30254890 100644 (file)
@@ -201,7 +201,6 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz
 }
 
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
-#define tas(ptr) (xchg((ptr),1))
 
 #define __HAVE_ARCH_CMPXCHG 1
 
index 77bf5873a013734ba22a46945241a5032455148e..09621f611dbc8d018d722edc39f45f5945e8844e 100644 (file)
@@ -335,8 +335,6 @@ __xchg_local(volatile void *ptr, unsigned long x, unsigned int size)
                (unsigned long)_x_, sizeof(*(ptr)));                         \
   })
 
-#define tas(ptr) (xchg((ptr),1))
-
 /*
  * Compare and exchange - if *p == old, set it to new,
  * and return the old value of *p.
index 56abe5e9e15519d4401fa230d708d7f6050865af..d84a3cf4d033682b48dadecd7249b13c8b6419b9 100644 (file)
@@ -169,7 +169,6 @@ xchg_u32(volatile void *p, unsigned long val)
 extern void __xchg_called_with_bad_pointer(void);
 
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
-#define tas(ptr) (xchg((ptr),1))
 
 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size)
 {
index 127af304865febb1d5605412b5c17bfddc7c9624..e7e96ee0c8a5470e39f044e6067dcf8de8dea7a4 100644 (file)
@@ -82,16 +82,6 @@ static inline void sched_cacheflush(void)
 }
 #endif
 
-static inline unsigned long tas(volatile int *m)
-{
-       unsigned long retval;
-
-       __asm__ __volatile__ ("tas.b    @%1\n\t"
-                             "movt     %0"
-                             : "=r" (retval): "r" (m): "t", "memory");
-       return retval;
-}
-
 /*
  * A brief note on ctrl_barrier(), the control register write barrier.
  *
index b1598c26fcb088fe06d809540f7f90c3adde171d..5ff94644e8c87f4c47c0a24d5c539a9edcb07231 100644 (file)
@@ -43,8 +43,6 @@ extern struct task_struct *sh64_switch_to(struct task_struct *prev,
 
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
 
-#define tas(ptr) (xchg((ptr), 1))
-
 extern void __xchg_called_with_bad_pointer(void);
 
 #define mb()   __asm__ __volatile__ ("synco": : :"memory")
index 100c3eaf3c1fe439713ccedab0ea8c0e87459067..8b6d9c9c8b938ab38d2f99d6112adea1ca3c6ee2 100644 (file)
@@ -241,7 +241,6 @@ static inline unsigned long xchg_u32(__volatile__ unsigned long *m, unsigned lon
 }
 
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
-#define tas(ptr) (xchg((ptr),1))
 
 extern void __xchg_called_with_bad_pointer(void);
 
index 32281acb878b3dc82745266ea1c5b6fd1dd87e17..8ba380ec6daa3216de3bd8cfcef6757d93ff1458 100644 (file)
@@ -253,7 +253,6 @@ static inline unsigned long xchg64(__volatile__ unsigned long *m, unsigned long
 }
 
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
-#define tas(ptr) (xchg((ptr),1))
 
 extern void __xchg_called_with_bad_pointer(void);
 
index da39916f10b0cc523eb2c0907f8579b5445fdc41..0de2481fd990dcb247e42488be480c8259b40a84 100644 (file)
@@ -76,7 +76,6 @@ static inline int irqs_disabled (void)
 
 #define xchg(ptr, with) \
   ((__typeof__ (*(ptr)))__xchg ((unsigned long)(with), (ptr), sizeof (*(ptr))))
-#define tas(ptr) (xchg ((ptr), 1))
 
 static inline unsigned long __xchg (unsigned long with,
                                    __volatile__ void *ptr, int size)
index 1f1c0bf4a5df9d361a72a4bc3a99f26b545be5ea..5316f3cac2307dde7f03479c0066dcae855fb7bb 100644 (file)
@@ -126,8 +126,6 @@ static inline void sched_cacheflush(void)
 
 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr))))
 
-#define tas(ptr) (xchg((ptr),1))
-
 #define __xg(x) ((volatile long *)(x))
 
 static inline void set_64bit(volatile unsigned long *ptr, unsigned long val)
index 4aaed7fe6cfee3964531029a4013a0996888320b..ddc970847ae9e406c3a9da69e04a190c1acc7151 100644 (file)
@@ -183,8 +183,6 @@ static inline unsigned long xchg_u32(volatile int * m, unsigned long val)
   return tmp;
 }
 
-#define tas(ptr) (xchg((ptr),1))
-
 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
 
 /*
This page took 0.032929 seconds and 5 git commands to generate.