]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sparc64: Define WANT_PAGE_VIRTUAL
authorDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 06:36:32 +0000 (23:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 06:36:32 +0000 (23:36 -0700)
commitb0f1e7962f93a78630161c7c9fc263de43c101ac
treee08a62bdbee47a327f6d80b3d83942f6b7eb9941
parent17f04fbb0f7153d95ec33da81189b113cc778157
sparc64: Define WANT_PAGE_VIRTUAL

As sparse warns, without this struct page pointer subtraction is
extremely expensive, and this is a pretty common operation in
fast paths.

With this define struct page becomes 64 bytes which makes for a
simple subtract and shift, instead of a costly divide or reciprocol
multiply.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/page_64.h