diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2010-01-22 03:16:19 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-01 19:58:17 -0500 |
commit | 61ef2489dbf587258526cfd4ebf4bba3b079f401 (patch) | |
tree | 4806ed052c73d84821d958f306699b2a27da965e /include/linux/ioport.h | |
parent | ccef086454d4c97e7b722e9303390207d681cb4c (diff) |
resources: introduce generic page_is_ram()
It's based on walk_system_ram_range(), for archs that don't have
their own page_is_ram().
The static verions in MIPS and SCORE are also made global.
v4: prefer plain 1 instead of PAGE_IS_RAM (H. Peter Anvin)
v3: add comment (KAMEZAWA Hiroyuki)
"AFAIK, this "System RAM" information has been used for kdump to
grab valid memory area and seems good for the kernel itself."
v2: add PAGE_IS_RAM macro (Américo Wang)
Cc: Chen Liqin <liqin.chen@sunplusct.com>
Cc: Lennox Wu <lennox.wu@gmail.com>
Cc: Américo Wang <xiyou.wangcong@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Yinghai Lu <yinghai@kernel.org>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
LKML-Reference: <20100122081619.GA6431@localhost>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/linux/ioport.h')
-rw-r--r-- | include/linux/ioport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ioport.h b/include/linux/ioport.h index 83aa81297ea3..11ef7952b63a 100644 --- a/include/linux/ioport.h +++ b/include/linux/ioport.h | |||
@@ -188,5 +188,7 @@ extern int | |||
188 | walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages, | 188 | walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages, |
189 | void *arg, int (*func)(unsigned long, unsigned long, void *)); | 189 | void *arg, int (*func)(unsigned long, unsigned long, void *)); |
190 | 190 | ||
191 | extern int page_is_ram(unsigned long pfn); | ||
192 | |||
191 | #endif /* __ASSEMBLY__ */ | 193 | #endif /* __ASSEMBLY__ */ |
192 | #endif /* _LINUX_IOPORT_H */ | 194 | #endif /* _LINUX_IOPORT_H */ |