summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2005-01-14 17:40:45 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-14 17:40:45 -0800
commit8b0a7bd8add3c87583556ce8770bd4bc8f83cf41 (patch)
tree6d58bc2bfc33ba6ff7654b9dd73d9bd26dad6ab9 /scripts
parent7619fe4e2f2ce2be7b63c9d50bd396ca2d2bcba1 (diff)
[PATCH] Don't busy-lock-loop in preemptable spinlocks
Paul Mackerras points out that doing the _raw_spin_trylock each time through the loop will generate tons of unnecessary bus traffic. Instead, after we fail to get the lock we should poll it with simple loads until we see that it is clear and then retry the atomic op. Assuming a reasonable cache design, the loads won't generate any bus traffic until another cpu writes to the cacheline containing the lock. Agreed. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions