]> bbs.cooldavid.org Git - net-next-2.6.git/commit
sparc64: Make rwsems 64-bit.
authorDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2010 05:49:26 +0000 (22:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2010 05:49:26 +0000 (22:49 -0700)
commit9b3bb86acabe0c05923cea1ed3b0bee9439fef4b
tree44095535e5f2634c319122b718c8998ee3b52511
parentb10f997bb0f4e5b34d447f498fb85834a40d3acb
sparc64: Make rwsems 64-bit.

Basically tip-off the powerpc code, use a 64-bit type and atomic64_t
interfaces for the implementation.

This gets us off of the by-hand asm code I wrote, which frankly I
think probably ruins I-cache hit rates.

The idea was the keep the call chains less deep, but anything taking
the rw-semaphores probably is also calling other stuff and therefore
already has allocated a stack-frame.  So no real stack frame savings
ever.

Ben H. has posted patches to make powerpc use 64-bit too and with some
abstractions we can probably use a shared header file somewhere.

With suggestions from Sam Ravnborg.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/rwsem-const.h [deleted file]
arch/sparc/include/asm/rwsem.h
arch/sparc/lib/Makefile
arch/sparc/lib/rwsem_64.S [deleted file]