diff options
author | Mark Rutland <[email protected]> | 2011-08-30 17:45:10 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2011-09-04 10:50:03 +0100 |
commit | fb492c9160f3d40d09456a79cc669fba74d7d9cc (patch) | |
tree | ddccd8f32734a46e84ee08a4b905c9855a95582f /net/lapb/lapb_timer.c | |
parent | 9e79e3e9dd9672b37ac9412e9a926714306551fe (diff) |
ARM: 7067/1: mm: keep significant bits in pfn_valid
When ARCH_HAS_HOLES_MEMORYMODEL is selected, pfn_valid calls
memblock_is_memory to test validity of a pfn:
> memblock_is_memory(pfn << PAGE_SHIFT);
On LPAE systems this cuts off the top bits, as the shift occurs before
the value is promoted to a phys_addr_t.
This patch replaces the shift with a call to __pfn_to_phys (which casts
pfn to phys_addr_t before shifting), preventing the loss of significant
bits.
Signed-off-by: Mark Rutland <[email protected]>
Acked-by: Will Deacon <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions