Commit f7e2f7e8 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

mm/memblock.c: use PFN_DOWN

Replace ((x) >> PAGE_SHIFT) with the pfn macro.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c8e861a5
...@@ -1402,9 +1402,8 @@ int __init_memblock memblock_search_pfn_nid(unsigned long pfn, ...@@ -1402,9 +1402,8 @@ int __init_memblock memblock_search_pfn_nid(unsigned long pfn,
if (mid == -1) if (mid == -1)
return -1; return -1;
*start_pfn = type->regions[mid].base >> PAGE_SHIFT; *start_pfn = PFN_DOWN(type->regions[mid].base);
*end_pfn = (type->regions[mid].base + type->regions[mid].size) *end_pfn = PFN_DOWN(type->regions[mid].base + type->regions[mid].size);
>> PAGE_SHIFT;
return type->regions[mid].nid; return type->regions[mid].nid;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment