Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Minchan Kim and committed by
Linus Torvalds
93180cec 69980e31

+1
+1
arch/mips/sgi-ip27/ip27-memory.c
··· 401 401 * Allocate the node data structures on the node first. 402 402 */ 403 403 __node_data[node] = __va(slot_freepfn << PAGE_SHIFT); 404 + memset(__node_data[node], 0, PAGE_SIZE); 404 405 405 406 NODE_DATA(node)->bdata = &bootmem_node_data[node]; 406 407 NODE_DATA(node)->node_start_pfn = start_pfn;