Re: spin_unlock optimization

Steve Dodd (dirk@loth.demon.co.uk)
Thu, 30 Dec 1999 22:21:03 +0000


On Thu, Dec 30, 1999 at 04:06:04AM +0100, Oliver Henning wrote:

> well, not necessarily. If you would modify the spin_unlock asm sequence at
> boot time, there would be no performance loss. But self-modifying code is
> not very desirable, so...

Erm, spin_unlock is inlined isn't it? So that won't work unless you want to
grep for the code sequence all over the kernel and modules; also, the binary
module people would be forced to brutally murder you :-)

-- 
[It is] best to confuse only one issue at a time.
                -- K&R

- 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/