All of lore.kernel.org
 help / color / mirror / Atom feed
* smp_mb() in asm-mips/bitops.h
@ 2007-06-07  7:53 Atsushi Nemoto
  2007-06-07 12:23 ` Ralf Baechle
  0 siblings, 1 reply; 5+ messages in thread
From: Atsushi Nemoto @ 2007-06-07  7:53 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

I found some funny usages of smp_mb() in asm-mips/bitops.h:

static inline int test_and_set_bit(unsigned long nr,
	volatile unsigned long *addr)
{
	if (cpu_has_llsc && R10000_LLSC_WAR) {
...
		return res != 0;
	} else if (cpu_has_llsc) {
...
		return res != 0;
	} else {
...
		return retval;
	}

	smp_mb();
}

It looks this smp_mb() never have any effects.  This change is from:

> commit 0004a9dfeaa709a7f853487aba19932c9b1a87c8
> Author: Ralf Baechle <ralf@linux-mips.org>
> Date:   Tue Oct 31 03:45:07 2006 +0000
> 
>     [MIPS] Cleanup memory barriers for weakly ordered systems.

at 2.6.18 development cycle.

---
Atsushi Nemoto

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-13 18:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-07  7:53 smp_mb() in asm-mips/bitops.h Atsushi Nemoto
2007-06-07 12:23 ` Ralf Baechle
2007-06-07 14:41   ` Atsushi Nemoto
2007-06-13 15:56   ` Atsushi Nemoto
2007-06-13 18:45     ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.