x86, amd: Cleanup init_amd
authorBorislav Petkov <bp@suse.de>
Tue, 24 Jun 2014 11:25:04 +0000 (13:25 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 14 Jul 2014 19:21:40 +0000 (12:21 -0700)
commit26bfa5f89486a8926cd4d4ca81a04d3f0f174934
tree5a51e1be2db950be44ffb3fb05f2df00811bda0f
parent80a208bd3948aceddf0429bd9f9b4cd858d526df
x86, amd: Cleanup init_amd

Distribute family-specific code to corresponding functions.

Also,

* move the direct mapping splitting around the TSEG SMM area to
bsp_init_amd().

* kill ancient comment about what we should do for K5.

* merge amd_k7_smp_check() into its only caller init_amd_k7 and drop
cpu_has_mp macro.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1403609105-8332-3-git-send-email-bp@alien8.de
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/amd.c