perf, amd: Use kmalloc_node(,__GFP_ZERO) for northbridge structure allocation
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 1 Nov 2010 17:52:05 +0000 (18:52 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Nov 2010 21:58:40 +0000 (22:58 +0100)
commit034c6efa4616e5ff6253549e973e7fef12899324
tree7a695a818903246cbc11b4986de2d47d3d98b96a
parenteed01528a45dc4138e9a08064b4b6cc1a9426899
perf, amd: Use kmalloc_node(,__GFP_ZERO) for northbridge structure allocation

Jasper suggested we use the zeroing capability of the allocators
instead of calling memset ourselves. Add node affinity while we're at
it.

Reported-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_amd.c