summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorManfred Spraul <manfred@colorfullife.com>2002-12-21 20:04:34 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-12-21 20:04:34 -0800
commit5e163a89fedacf47100735e738c43687d3bf18a2 (patch)
treec124ec63485ef54cf644ecb80461e4adb5173032 /include/linux
parentd21918b6a35805753c9f08f7d3eb29004ec86066 (diff)
[PATCH] reorder 'rep;nop;' in the spinlock macro
According to Intel's recommendation, 'rep;nop; should be called before testing if the lock variable was modified (i.e. rep nop;cmp;jcc). The current implementation does it the wrong way around: first test, then wait, then branch. I've asked Asit Mallik from Intel, and he recommended to change it. It should be at least consistent: Right now, spinlock uses 'cmp;rep nop;jcc', rwlock uses 'rep nop;cmp;jcc'
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions