Skip to content

Commit

Permalink
Remove tas()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 8, 2007
1 parent c343c14 commit 5dc12dd
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 38 deletions.
3 changes: 0 additions & 3 deletions include/asm-alpha/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions include/asm-arm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 0 additions & 2 deletions include/asm-arm26/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down
1 change: 0 additions & 1 deletion include/asm-blackfin/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
1 change: 0 additions & 1 deletion include/asm-h8300/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 0 additions & 2 deletions include/asm-i386/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 0 additions & 2 deletions include/asm-m32r/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion include/asm-m68k/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 0 additions & 1 deletion include/asm-m68knommu/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 0 additions & 1 deletion include/asm-mips/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions include/asm-powerpc/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion include/asm-ppc/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
10 changes: 0 additions & 10 deletions include/asm-sh/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 0 additions & 2 deletions include/asm-sh64/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion include/asm-sparc/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion include/asm-sparc64/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion include/asm-v850/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions include/asm-x86_64/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions include/asm-xtensa/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))))

/*
Expand Down

0 comments on commit 5dc12dd

Please sign in to comment.