aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-02-06 11:53:16 -0500
committerRalf Baechle <ralf@linux-mips.org>2007-02-06 11:53:16 -0500
commit418451c17870e56a176aeb4be1bed810f634fb5a (patch)
tree0b94b043754aa7138505f41a7161f7d8958d4965 /arch
parent69a6c312e5ebb2e929ceb67e6246e2d9314f1d29 (diff)
[MIPS] SMTC: remove unused atomic_postclear
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/smtc.c22
1 files changed, 0 insertions, 22 deletions
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)
676 return result; 676 return result;
677} 677}
678 678
679/* No longer used in IPI dispatch, but retained for future recycling */
680
681static __inline__ int atomic_postclear(unsigned int *pv)
682{
683 unsigned long result;
684
685 unsigned long temp;
686
687 __asm__ __volatile__(
688 "1: ll %0, %2 \n"
689 " or %1, $0, $0 \n"
690 " sc %1, %2 \n"
691 " beqz %1, 1b \n"
692 " sync \n"
693 : "=&r" (result), "=&r" (temp), "=m" (*pv)
694 : "m" (*pv)
695 : "memory");
696
697 return result;
698}
699
700
701void smtc_send_ipi(int cpu, int type, unsigned int action) 679void smtc_send_ipi(int cpu, int type, unsigned int action)
702{ 680{
703 int tcstatus; 681 int tcstatus;