On Sun, 13 Nov 2005, Dave Jones wrote:
>
> Looks like the Ubuntu people already did this...
Yeah, that looks like a sane patch, although I dislike the #ifdef config
option thing (either it works or it doesn't).
It also does it the right way: using LOCK_PREFIX means that you catch
exactly the users that depend on SMP, and not _all_ "lock" prefixes (as
mentioned, some of the lock prefixes are there as memory fences and are
valid and needed even on UP). So me likee.
The only question being whether you'd actually want to nop out the
spinlock instructions _entirely_ (in addition to changing the nops on
things like semaphores). Without the lock, they're not that expensive, but
hey, it's still a useless (memory-modifying) instruction.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]