mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-17 06:17:35 +00:00
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>
This commit is contained in:
parent
17f04fbb0f
commit
b0f1e7962f
@ -38,6 +38,8 @@
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#define WANT_PAGE_VIRTUAL
|
||||
|
||||
extern void _clear_page(void *page);
|
||||
#define clear_page(X) _clear_page((void *)(X))
|
||||
struct page;
|
||||
|
Loading…
Reference in New Issue
Block a user