projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6326440
)
memory-hotplug: x86_64: suitable memory should go to ZONE_MOVABLE
author
Wang Nan
<
[email protected]
>
Wed, 6 Aug 2014 23:07:38 +0000
(16:07 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 7 Aug 2014 01:01:21 +0000
(18:01 -0700)
This patch introduces zone_for_memory() to arch_add_memory() on x86_64
to ensure new, higher memory added into ZONE_MOVABLE if movable zone has
already setup.
Signed-off-by: Wang Nan <
[email protected]
>
Cc: Zhang Yanfei <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Yinghai Lu <
[email protected]
>
Cc: "Mel Gorman" <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: "H. Peter Anvin" <
[email protected]
>
Cc: "Luck, Tony" <
[email protected]
>
Cc: Benjamin Herrenschmidt <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Chris Metcalf <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/x86/mm/init_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/init_64.c
b/arch/x86/mm/init_64.c
index df1a9927ad29ef9aa727851e775badb0f43a5416..5621c47d7a1a0e7274c7fd49b6aa7602d952bd74 100644
(file)
--- a/
arch/x86/mm/init_64.c
+++ b/
arch/x86/mm/init_64.c
@@
-691,7
+691,8
@@
static void update_end_of_memory_vars(u64 start, u64 size)
int arch_add_memory(int nid, u64 start, u64 size)
{
struct pglist_data *pgdat = NODE_DATA(nid);
- struct zone *zone = pgdat->node_zones + ZONE_NORMAL;
+ struct zone *zone = pgdat->node_zones +
+ zone_for_memory(nid, start, size, ZONE_NORMAL);
unsigned long start_pfn = start >> PAGE_SHIFT;
unsigned long nr_pages = size >> PAGE_SHIFT;
int ret;