aboutsummaryrefslogtreecommitdiff
path: root/drivers/ssb/driver_gige.c
diff options
context:
space:
mode:
authorJan Blunck <jblunck@suse.de>2009-01-07 18:07:53 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-08 08:31:04 -0800
commitc8dad2bb6307f5b00f804a686917105206a4d5c9 (patch)
tree5f1b7dd1fc4ae5789e35e5d0dade0d37be9fe52e /drivers/ssb/driver_gige.c
parentf817ed48535ac6510ebae7c4116f24a5f9268834 (diff)
memcg: reduce size of mem_cgroup by using nr_cpu_ids
As Jan Blunck <jblunck@suse.de> pointed out, allocating per-cpu stat for memcg to the size of NR_CPUS is not good. This patch changes mem_cgroup's cpustat allocation not based on NR_CPUS but based on nr_cpu_ids. Reviewed-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Li Zefan <lizf@cn.fujitsu.com> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/ssb/driver_gige.c')
0 files changed, 0 insertions, 0 deletions