Andi Kleen wrote:
From include/linux/prefetch.h:

"spin_lock_prefetch(x) - prefectches the spinlock *x for taking"

So this would reduce icache footprint and possibly memory
traffic on UP where taking a spinlock is a noop.


Ah you want to disable it on UP? Ok that makes more sense. Why didn't you just say that? :)


Well I did, in a confusing kind of way ;) ... with the alternative
input stuff being used here, "noop" becomes ambiguous I guess.

Anyways, even on UP it might be useful on all these mutex or whatever
lock is envogue these days preemptive kernels.


I'm sure it would be useful. Though it is something that could be
maintained out of tree.

--
SUSE Labs, Novell Inc.

Send instant messages to your online friends http://au.messenger.yahoo.com

Reply via email to