diff options
author | Jiang Liu <liuj97@gmail.com> | 2013-07-03 18:04:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:07:36 -0400 |
commit | 1132137e87898d0b6786d85a99de35ce196ecbfb (patch) | |
tree | e601ac94250ca358ea397832fd1f425d3d2bf1bc /arch/mips/pci/pci-lantiq.c | |
parent | 6879ea83c6d14e4f21bf48b5780ed549197c668b (diff) |
mm/MIPS: prepare for removing num_physpages and simplify mem_init()
Prepare for removing num_physpages and simplify mem_init().
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: David Daney <david.daney@cavium.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: John Crispin <blogic@openwrt.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/pci/pci-lantiq.c')
-rw-r--r-- | arch/mips/pci/pci-lantiq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pci/pci-lantiq.c b/arch/mips/pci/pci-lantiq.c index 879077b01155..cb1ef9984069 100644 --- a/arch/mips/pci/pci-lantiq.c +++ b/arch/mips/pci/pci-lantiq.c | |||
@@ -89,7 +89,7 @@ static inline u32 ltq_calc_bar11mask(void) | |||
89 | u32 mem, bar11mask; | 89 | u32 mem, bar11mask; |
90 | 90 | ||
91 | /* BAR11MASK value depends on available memory on system. */ | 91 | /* BAR11MASK value depends on available memory on system. */ |
92 | mem = num_physpages * PAGE_SIZE; | 92 | mem = get_num_physpages() * PAGE_SIZE; |
93 | bar11mask = (0x0ffffff0 & ~((1 << (fls(mem) - 1)) - 1)) | 8; | 93 | bar11mask = (0x0ffffff0 & ~((1 << (fls(mem) - 1)) - 1)) | 8; |
94 | 94 | ||
95 | return bar11mask; | 95 | return bar11mask; |