|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 1/4] mm: Remove dependency on CONFIG_FLATMEM from onl
To: |
ian.campbell@xxxxxxxxxx, akpm@xxxxxxxxxxxxxxxxxxxx, andi.kleen@xxxxxxxxx, haicheng.li@xxxxxxxxxxxxxxx, fengguang.wu@xxxxxxxxx, jeremy@xxxxxxxx, konrad.wilk@xxxxxxxxxx, dan.magenheimer@xxxxxxxxxx, v.tolstov@xxxxxxxxx, pasik@xxxxxx, dave@xxxxxxxxxxxxxxxxxx, wdauchy@xxxxxxxxx, rientjes@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx |
Subject: |
[Xen-devel] [PATCH 1/4] mm: Remove dependency on CONFIG_FLATMEM from online_page() |
From: |
Daniel Kiper <dkiper@xxxxxxxxxxxx> |
Date: |
Mon, 2 May 2011 23:19:15 +0200 |
Cc: |
|
Delivery-date: |
Mon, 02 May 2011 14:20:41 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
Mutt/1.3.28i |
Memory hotplug code strictly depends on CONFIG_SPARSEMEM.
It means that code depending on CONFIG_FLATMEM in online_page()
is never compiled. Remove it because it is not needed anymore.
Signed-off-by: Daniel Kiper <dkiper@xxxxxxxxxxxx>
---
mm/memory_hotplug.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 9ca1d60..a807ccb 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -374,10 +374,6 @@ void online_page(struct page *page)
totalhigh_pages++;
#endif
-#ifdef CONFIG_FLATMEM
- max_mapnr = max(pfn, max_mapnr);
-#endif
-
ClearPageReserved(page);
init_page_count(page);
__free_page(page);
--
1.5.6.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 1/4] mm: Remove dependency on CONFIG_FLATMEM from online_page(),
Daniel Kiper <=
|
|
|
|
|