sparc64: Use 'ILOG2_4MB' instead of constant '22'.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2014-05-03 22:52:50 -07:00
parent ee73887e92
commit 0eef331a3d
4 changed files with 10 additions and 10 deletions

View File

@@ -918,7 +918,7 @@ static inline bool kern_addr_valid(unsigned long addr)
if ((paddr >> MAX_PHYS_ADDRESS_BITS) != 0UL)
return false;
return test_bit(paddr >> 22, sparc64_valid_addr_bitmap);
return test_bit(paddr >> ILOG2_4MB, sparc64_valid_addr_bitmap);
}
extern int page_in_phys_avail(unsigned long paddr);