From: Borislav Petkov Date: Mon, 8 Apr 2013 15:57:45 +0000 (+0200) Subject: x86, AMD: Correct {rd,wr}msr_amd_safe warnings X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~113^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=682469a5db6fade318a72406935b5000186e5643;p=pandora-kernel.git x86, AMD: Correct {rd,wr}msr_amd_safe warnings The idea with those routines is to slowly phase them out and not call them on anything else besides K8. They even have a check for that which, when called too early, fails. Let me explain: It gets the cpuinfo_x86 pointer from the per_cpu array and when this happens for cpu0, before its boot_cpu_data has been copied back to the per_cpu array in smp_store_boot_cpu_info(), we get an empty struct and thus the check fails. Use boot_cpu_data directly instead. Signed-off-by: Borislav Petkov Link: http://lkml.kernel.org/r/1365436666-9837-4-git-send-email-bp@alien8.de Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed