From: Ralf Baechle Date: Tue, 6 Feb 2007 16:53:16 +0000 (+0000) Subject: [MIPS] SMTC: remove unused atomic_postclear X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=418451c17870e56a176aeb4be1bed810f634fb5a;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [MIPS] SMTC: remove unused atomic_postclear Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c index 6a2763143771..19c58fcd088c 100644 --- a/arch/mips/kernel/smtc.c +++ b/arch/mips/kernel/smtc.c @@ -676,28 +676,6 @@ static __inline__ int atomic_postincrement(unsigned int *pv) return result; } -/* No longer used in IPI dispatch, but retained for future recycling */ - -static __inline__ int atomic_postclear(unsigned int *pv) -{ - unsigned long result; - - unsigned long temp; - - __asm__ __volatile__( - "1: ll %0, %2 \n" - " or %1, $0, $0 \n" - " sc %1, %2 \n" - " beqz %1, 1b \n" - " sync \n" - : "=&r" (result), "=&r" (temp), "=m" (*pv) - : "m" (*pv) - : "memory"); - - return result; -} - - void smtc_send_ipi(int cpu, int type, unsigned int action) { int tcstatus;