KAMEZAWA Hiroyuki
908eedc616
walk system ram range
...
Originally, walk_memory_resource() was introduced to traverse all memory
of "System RAM" for detecting memory hotplug/unplug range. For doing so,
flags of IORESOUCE_MEM|IORESOURCE_BUSY was used and this was enough for
memory hotplug.
But for using other purpose, /proc/kcore, this may includes some firmware
area marked as IORESOURCE_BUSY | IORESOUCE_MEM. This patch makes the
check strict to find out busy "System RAM".
Note: PPC64 keeps their own walk_memory_resouce(), which walk through
ppc64's lmb informaton. Because old kclist_add() is called per lmb, this
patch makes no difference in behavior, finally.
And this patch removes CONFIG_MEMORY_HOTPLUG check from this function.
Because pfn_valid() just show "there is memmap or not* and cannot be used
for "there is physical memory or not", this function is useful in generic
to scan physical memory range.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com >
Cc: Ralf Baechle <ralf@linux-mips.org >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: WANG Cong <xiyou.wangcong@gmail.com >
Cc: Américo Wang <xiyou.wangcong@gmail.com >
Cc: David Rientjes <rientjes@google.com >
Cc: Roland Dreier <rolandd@cisco.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2009-09-23 07:39:41 -07:00
..
2009-09-11 12:54:23 -07:00
2009-09-21 15:14:58 +02:00
2009-09-02 23:07:36 -07:00
2009-09-03 20:02:11 -07:00
2009-09-17 10:27:28 -07:00
2009-09-03 20:02:11 -07:00
2009-09-17 10:30:13 -07:00
2009-09-21 15:14:55 +02:00
2009-09-15 01:31:34 -07:00
2009-09-01 01:14:07 -07:00
2009-07-05 19:16:04 -07:00
2009-09-14 10:37:28 -07:00
2009-09-21 15:14:55 +02:00
2009-09-03 20:02:11 -07:00
2009-09-23 07:39:41 -07:00
2009-09-03 20:19:25 -07:00
2009-07-23 19:03:51 -07:00
2009-09-02 23:45:58 -07:00
2009-09-21 15:14:58 +02:00
2009-09-21 15:14:58 +02:00
2009-09-02 23:07:36 -07:00
2009-09-02 00:32:56 -07:00
2009-09-01 01:13:52 -07:00
2009-09-14 17:03:45 -07:00
2009-09-02 00:32:56 -07:00
2009-09-16 00:00:21 -07:00
2009-09-01 01:14:07 -07:00
2009-09-11 16:58:51 -07:00
2009-09-15 02:42:25 -07:00
2009-09-11 12:54:38 -07:00
2009-09-21 15:14:58 +02:00
2009-09-02 01:03:33 -07:00
2009-09-21 15:14:58 +02:00
2009-09-01 01:13:26 -07:00
2009-09-03 20:02:11 -07:00
2009-09-14 17:03:33 -07:00
2009-09-21 15:14:58 +02:00
2009-09-11 12:54:30 -07:00
2009-09-11 12:54:55 -07:00
2009-09-21 15:14:56 +02:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-04 03:41:07 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-07-05 19:23:38 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-03 20:02:11 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-07-05 19:16:04 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 17:40:56 -07:00
2009-09-16 20:49:47 -07:00
2009-06-15 03:02:23 -07:00
2009-09-17 20:07:53 +02:00
2009-09-17 20:07:53 +02:00
2009-09-02 01:03:33 -07:00
2009-08-12 17:44:53 -07:00
2009-09-03 20:02:11 -07:00
2009-09-02 00:32:56 -07:00
2009-08-12 23:03:00 -07:00
2009-08-12 22:53:28 -07:00
2009-04-27 03:27:43 -07:00
2009-08-12 23:02:12 -07:00
2009-08-12 23:02:59 -07:00
2009-08-12 23:02:59 -07:00
2009-08-12 23:03:01 -07:00
2009-08-12 23:02:57 -07:00
2009-09-02 01:03:33 -07:00
2009-09-21 15:14:54 +02:00
2009-08-12 23:03:01 -07:00
2009-09-03 20:02:11 -07:00
2009-06-09 10:22:42 -05:00
2009-08-15 18:50:47 -07:00
2009-09-02 00:32:56 -07:00
2009-08-15 18:50:44 -07:00
2009-08-05 12:22:11 -07:00
2009-09-01 01:14:07 -07:00
2009-09-02 23:07:36 -07:00
2009-07-05 19:16:04 -07:00
2009-07-05 19:16:04 -07:00
2009-07-05 19:16:04 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-09 18:54:49 -07:00
2009-07-06 18:54:51 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:13:40 -07:00
2009-09-02 00:32:56 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:13:40 -07:00
2009-09-01 01:14:07 -07:00
2009-09-02 23:07:36 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-06-18 11:22:08 +10:00
2009-08-23 19:51:03 -07:00
2009-09-17 09:52:43 -07:00
2009-07-06 18:56:11 -07:00
2009-09-01 01:14:07 -07:00
2009-06-25 20:03:53 -07:00
2009-09-21 15:14:58 +02:00
2009-09-14 10:37:28 -07:00
2009-06-03 02:43:41 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-07 01:56:52 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:13:40 -07:00
2009-07-05 19:16:04 -07:00
2009-09-02 01:03:33 -07:00
2009-06-12 18:01:46 +02:00
2009-07-16 20:21:24 -07:00
2009-07-05 19:16:04 -07:00
2009-08-12 21:54:57 -07:00
2009-09-01 01:14:07 -07:00
2009-07-06 13:05:13 -07:00
2009-09-17 20:07:53 +02:00
2009-09-02 01:03:33 -07:00
2009-09-02 01:03:33 -07:00
2009-09-01 01:14:07 -07:00
2009-07-20 08:23:26 -07:00
2009-09-01 01:14:07 -07:00
2009-05-05 12:29:47 -07:00
2009-09-01 01:14:07 -07:00
2009-07-05 19:16:04 -07:00
2009-09-21 15:14:58 +02:00
2009-04-27 02:53:52 -07:00
2009-04-27 02:53:52 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-07-05 19:16:04 -07:00
2009-06-03 02:43:41 -07:00
2009-09-21 15:14:56 +02:00
2009-07-05 19:16:04 -07:00
2009-07-23 18:01:09 -07:00
2009-09-03 20:02:13 -07:00
2009-09-17 20:07:53 +02:00
2009-09-03 20:02:11 -07:00
2009-07-23 18:01:06 -07:00
2009-09-03 20:02:11 -07:00
2009-07-05 19:16:04 -07:00
2009-09-11 12:54:49 -07:00
2009-07-05 19:16:04 -07:00
2009-09-03 20:02:11 -07:00
2009-05-03 14:19:23 -07:00
2009-05-01 15:21:55 -07:00
2009-07-08 10:30:03 -07:00
2009-05-01 15:24:18 -07:00
2009-07-05 19:16:04 -07:00
2009-09-21 15:14:58 +02:00
2009-09-01 01:14:07 -07:00
2009-07-05 19:16:04 -07:00
2009-09-23 07:39:29 -07:00
2009-06-12 18:01:45 +02:00
2009-09-01 01:14:07 -07:00
2009-04-27 03:20:17 -07:00
2009-04-27 02:53:49 -07:00
2009-09-03 20:02:11 -07:00
2009-09-01 01:14:07 -07:00
2009-07-16 20:21:24 -07:00
2009-07-16 09:14:23 -07:00
2009-09-01 01:13:40 -07:00
2009-07-16 09:14:23 -07:00
2009-08-12 16:39:16 -07:00
2009-09-14 17:03:09 -07:00
2009-09-02 01:03:33 -07:00
2009-09-02 01:03:33 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-07 02:03:37 -07:00
2009-09-21 15:14:54 +02:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-04-29 17:32:34 -07:00
2009-09-01 01:14:07 -07:00
2009-08-30 22:35:11 -07:00
2009-08-02 12:20:40 -07:00
2009-09-01 01:14:07 -07:00
2009-07-23 18:01:07 -07:00
2009-09-01 01:14:07 -07:00
2009-09-01 01:14:07 -07:00
2009-07-23 18:01:04 -07:00
2009-08-29 00:19:35 -07:00
2009-08-29 00:19:35 -07:00
2009-09-01 01:14:07 -07:00
2009-09-03 20:02:11 -07:00
2009-09-21 15:14:58 +02:00
2009-09-21 15:14:58 +02:00
2009-09-01 17:40:44 -07:00
2009-09-19 13:13:17 -07:00
2009-09-15 09:37:12 -07:00
2009-09-17 20:53:52 -07:00
2009-07-05 19:16:04 -07:00
2009-08-12 22:13:16 -07:00
2009-09-01 01:14:07 -07:00
2009-05-01 15:21:55 -07:00
2009-09-02 23:07:36 -07:00
2009-09-02 23:07:36 -07:00
2009-07-05 19:23:38 -07:00
2009-09-01 01:14:07 -07:00
2009-07-05 19:16:04 -07:00
2009-07-05 19:16:04 -07:00
2009-07-05 19:16:04 -07:00
2009-09-01 01:14:07 -07:00
2009-09-03 20:02:11 -07:00
2009-09-01 01:14:07 -07:00
2009-07-05 19:16:04 -07:00
2009-07-05 19:16:04 -07:00
2009-07-12 14:20:04 -07:00
2009-08-06 13:14:25 -07:00
2009-09-02 01:03:33 -07:00
2009-09-11 16:50:16 -07:00
2009-09-02 00:44:09 -07:00
2009-09-03 20:02:11 -07:00
2009-07-08 10:30:03 -07:00
2009-09-19 12:50:38 -07:00
2009-09-01 01:14:07 -07:00
2009-08-30 21:51:47 -07:00
2009-09-11 12:54:45 -07:00
2009-08-30 21:51:47 -07:00
2009-09-02 01:03:33 -07:00
2009-09-02 00:32:56 -07:00
2009-09-03 20:02:11 -07:00
2009-07-23 18:11:28 -07:00
2009-09-02 01:03:33 -07:00
2009-09-02 01:03:33 -07:00
2009-09-02 23:07:36 -07:00
2009-07-23 18:01:08 -07:00
2009-09-03 20:02:11 -07:00
2009-09-01 01:14:07 -07:00
2009-08-09 21:46:53 -07:00