Date: Tue, 24 Aug 1999 05:56:34 -0400 (EDT)
From: Ingo Molnar <[EMAIL PROTECTED]>
instead of:
current->state = TASK_INTERRUPTIBLE;
+ mb();
shouldnt we do:
+ xchgl(¤t->state, TASK_INTERRUPTIBLE);
This 'merges' the barrier and the write. Or rather, in asm-i386 we could
do something like:
#define set_mb(addr,val) xchgl(addr,val)
and then use set_barrier().
Sure, but it costs ~8 instructions instead of 2 on ll/sc architectures.
Later,
David S. Miller
[EMAIL PROTECTED]
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]
- Re: [patch] possible SMP races all over the place in w... Linus Torvalds
- Re: [patch] possible SMP races all over the place... Andrea Arcangeli
- Re: [patch] possible SMP races all over the place... Andrea Arcangeli
- Re: [patch] possible SMP races all over the p... Alan Cox
- Re: [patch] possible SMP races all over t... Linus Torvalds
- Re: [patch] possible SMP races all ov... Alan Cox
- Re: [patch] possible SMP races all ov... Andrea Arcangeli
- Re: [patch] possible SMP races all over the p... Jeremy Fitzhardinge
- Re: [patch] possible SMP races all over t... Andrea Arcangeli
- Re: [patch] possible SMP races all over the p... Ingo Molnar
- Re: [patch] possible SMP races all over t... David S. Miller
- Re: [patch] possible SMP races all ov... Andrea Arcangeli
- Re: [patch] possible SMP races all ov... Ingo Molnar
