diff options
| author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2015-08-12 03:14:59 -0400 |
|---|---|---|
| committer | Greg Ungerer <gerg@uclinux.org> | 2015-08-24 00:31:38 -0400 |
| commit | 50e48bd0673180311874d0c1bd88505eefd75c4e (patch) | |
| tree | 1388e6c3c74ce40db1ee5b1fd14fec03a967f689 | |
| parent | 5bbc08fb0f1457ceef388739b48c72675246639c (diff) | |
m68k/coldfire: use PFN_DOWN macro
Replace ((x) >> PAGE_SHIFT) with the predefined PFN_DOWN macro.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
| -rw-r--r-- | arch/m68k/coldfire/m54xx.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/m68k/coldfire/m54xx.c b/arch/m68k/coldfire/m54xx.c index 075aaabd1360..f7836c6a6b60 100644 --- a/arch/m68k/coldfire/m54xx.c +++ b/arch/m68k/coldfire/m54xx.c | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #include <asm/m54xxgpt.h> | 25 | #include <asm/m54xxgpt.h> |
| 26 | #ifdef CONFIG_MMU | 26 | #ifdef CONFIG_MMU |
| 27 | #include <asm/mmu_context.h> | 27 | #include <asm/mmu_context.h> |
| 28 | #include <linux/pfn.h> | ||
| 28 | #endif | 29 | #endif |
| 29 | 30 | ||
| 30 | /***************************************************************************/ | 31 | /***************************************************************************/ |
| @@ -91,13 +92,13 @@ static void __init mcf54xx_bootmem_alloc(void) | |||
| 91 | m68k_memory[0].size = _ramend - _rambase; | 92 | m68k_memory[0].size = _ramend - _rambase; |
| 92 | 93 | ||
| 93 | /* compute total pages in system */ | 94 | /* compute total pages in system */ |
| 94 | num_pages = (_ramend - _rambase) >> PAGE_SHIFT; | 95 | num_pages = PFN_DOWN(_ramend - _rambase); |
| 95 | 96 | ||
| 96 | /* page numbers */ | 97 | /* page numbers */ |
| 97 | memstart = PAGE_ALIGN(_ramstart); | 98 | memstart = PAGE_ALIGN(_ramstart); |
| 98 | min_low_pfn = _rambase >> PAGE_SHIFT; | 99 | min_low_pfn = PFN_DOWN(_rambase); |
| 99 | start_pfn = memstart >> PAGE_SHIFT; | 100 | start_pfn = PFN_DOWN(memstart); |
| 100 | max_low_pfn = _ramend >> PAGE_SHIFT; | 101 | max_low_pfn = PFN_DOWN(_ramend); |
| 101 | high_memory = (void *)_ramend; | 102 | high_memory = (void *)_ramend; |
| 102 | 103 | ||
| 103 | m68k_virt_to_node_shift = fls(_ramend - _rambase - 1) - 6; | 104 | m68k_virt_to_node_shift = fls(_ramend - _rambase - 1) - 6; |
