Skip to content

Commit

Permalink
[MIPS] SMTC: remove unused atomic_postclear
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Feb 6, 2007
1 parent 69a6c31 commit 418451c
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions arch/mips/kernel/smtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 418451c

Please sign in to comment.