aboutsummaryrefslogtreecommitdiff
path: root/drivers/message/fusion/lsi/mpi_raid.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2009-01-25 12:50:13 -0800
committerIngo Molnar <[email protected]>2009-01-26 14:06:36 +0100
commit2d4d57db692ea790e185656516e6ebe8791f1788 (patch)
treef7ad21dbcb4d5de2f0eb63024c1b5f1bf5321d76 /drivers/message/fusion/lsi/mpi_raid.h
parent7106a5ab89c50c6b5aadea0850b40323804a922d (diff)
x86: micro-optimize __raw_read_trylock()
The current version of __raw_read_trylock starts with decrementing the lock and read its new value as a separate operation after that. That makes 3 dereferences (read, write (after sub), read) whereas a single atomic_dec_return does only two pointers dereferences (read, write). Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_raid.h')
0 files changed, 0 insertions, 0 deletions