mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 01:53:20 -04:00
x86/msr: Rename 'rdmsrl_amd_safe()' to 'rdmsrq_amd_safe()'
Suggested-by: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Juergen Gross <jgross@suse.com> Cc: Dave Hansen <dave.hansen@intel.com> Cc: Xin Li <xin@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
u16 invlpgb_count_max __ro_after_init;
|
||||
|
||||
static inline int rdmsrl_amd_safe(unsigned msr, u64 *p)
|
||||
static inline int rdmsrq_amd_safe(unsigned msr, u64 *p)
|
||||
{
|
||||
u32 gprs[8] = { 0 };
|
||||
int err;
|
||||
@@ -636,7 +636,7 @@ static void init_amd_k8(struct cpuinfo_x86 *c)
|
||||
*/
|
||||
if (c->x86_model < 0x14 && cpu_has(c, X86_FEATURE_LAHF_LM) && !cpu_has(c, X86_FEATURE_HYPERVISOR)) {
|
||||
clear_cpu_cap(c, X86_FEATURE_LAHF_LM);
|
||||
if (!rdmsrl_amd_safe(0xc001100d, &value)) {
|
||||
if (!rdmsrq_amd_safe(0xc001100d, &value)) {
|
||||
value &= ~BIT_64(32);
|
||||
wrmsrl_amd_safe(0xc001100d, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user