[PATCH 1/4] x86/amd: move nodes_per_socket into bsp_init_amd

2016-01-06 Thread Huang Rui
nodes_per_socket is static and it needn't be initialized many times during every cpu core init. So move nodes_per_socket initialization into bsp_init_amd. Signed-off-by: Huang Rui --- arch/x86/kernel/cpu/amd.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git

[PATCH 1/4] x86/amd: move nodes_per_socket into bsp_init_amd

2016-01-06 Thread Huang Rui
nodes_per_socket is static and it needn't be initialized many times during every cpu core init. So move nodes_per_socket initialization into bsp_init_amd. Signed-off-by: Huang Rui --- arch/x86/kernel/cpu/amd.c | 14 -- 1 file changed, 12 insertions(+), 2