diff options
author | Sheng Yong <shengyong1@huawei.com> | 2015-04-15 00:44:54 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-15 01:49:00 +0200 |
commit | 19c07d5e0414261bd7ec3d8419dd26f468ef69d9 (patch) | |
tree | 51cf67b5ebd9d96bfe2514fe128576ecca257581 /drivers/base | |
parent | mm: memcontrol: update copyright notice (diff) | |
download | linux-19c07d5e0414261bd7ec3d8419dd26f468ef69d9.tar.xz linux-19c07d5e0414261bd7ec3d8419dd26f468ef69d9.zip |
memory hotplug: use macro to switch between section and pfn
Use macro section_nr_to_pfn() to switch between section and pfn, instead
of open-coding it. No semantic changes.
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c index af9c911cd6b5..ab5c9a7dfeca 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c @@ -228,7 +228,7 @@ memory_block_action(unsigned long phys_index, unsigned long action, int online_t struct page *first_page; int ret; - start_pfn = phys_index << PFN_SECTION_SHIFT; + start_pfn = section_nr_to_pfn(phys_index); first_page = pfn_to_page(start_pfn); switch (action) { |