diff options
| author | Minchan Kim <minchan@kernel.org> | 2012-07-31 19:46:11 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 21:42:49 -0400 |
| commit | 93180cec0064d072a984f91c429c5e6bcc816976 (patch) | |
| tree | 3afab9e80f4df5fac7d222a3c60fc1d626a3a8e6 | |
| parent | 69980e31754ef23307d51372e61bf7c2584f8a4b (diff) | |
mips: zero out pg_data_t when it's allocated
This patch is preparation for the next patch which removes the zeroing of
the pg_data_t in core MM. All archs except MIPS already do this.
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | arch/mips/sgi-ip27/ip27-memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-memory.c index b105eca3c020..cd8fcab6b054 100644 --- a/arch/mips/sgi-ip27/ip27-memory.c +++ b/arch/mips/sgi-ip27/ip27-memory.c | |||
| @@ -401,6 +401,7 @@ static void __init node_mem_init(cnodeid_t node) | |||
| 401 | * Allocate the node data structures on the node first. | 401 | * Allocate the node data structures on the node first. |
| 402 | */ | 402 | */ |
| 403 | __node_data[node] = __va(slot_freepfn << PAGE_SHIFT); | 403 | __node_data[node] = __va(slot_freepfn << PAGE_SHIFT); |
| 404 | memset(__node_data[node], 0, PAGE_SIZE); | ||
| 404 | 405 | ||
| 405 | NODE_DATA(node)->bdata = &bootmem_node_data[node]; | 406 | NODE_DATA(node)->bdata = &bootmem_node_data[node]; |
| 406 | NODE_DATA(node)->node_start_pfn = start_pfn; | 407 | NODE_DATA(node)->node_start_pfn = start_pfn; |
