Re: spin_unlock optimization(i386)

Andrea Arcangeli (andrea@suse.de)
Fri, 26 Nov 1999 13:03:04 +0100 (CET)


On Fri, 26 Nov 1999, Manfred Spraul wrote:

>It's invisible on single CPU system, but clearly visible on SMP:

Your proggy hangs immediatly on UP no matter if using the locked bit set
or the movl. I am not sure if this is expected yet (but after a fast read
I can't see anything that depends on the hardware to be SMP in your
proggy). Hmm...

The UP hang is at least a bit suspect and worth checking IMHO. (work in
progress...)

You can boot with the "nosmp" param to try it out yourself if the reason
is not obvious to you as well. If it's obvious please let me know of
course ;). thx.

andrea@laser:~ > ./movopt
movopt:
starting, please wait.
delay 1: ok
[100% reproducible hang]

Andrea

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/