]> git.karo-electronics.de Git - karo-tx-linux.git/commit
numa: convert static memory to dynamically allocated memory for per node device
authorWen Congyang <wency@cn.fujitsu.com>
Fri, 9 Nov 2012 03:04:02 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Nov 2012 04:16:55 +0000 (15:16 +1100)
commit98fe5993dc6b78427cdcd5a085f895fb85149382
tree9a4440d9c02425b125a38adfabd301d671254c5f
parent5b0125025ba2a2dbba0400dc9614b61f53291af3
numa: convert static memory to dynamically allocated memory for per node device

We use a static array to store struct node.  In many cases, we don't have
too many nodes, and some memory will be unused.  Convert it to per-device
dynamically allocated memory.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Jiang Liu <liuj97@gmail.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/powerpc/kernel/sysfs.c
drivers/base/node.c
include/linux/node.h
mm/hugetlb.c