[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] x86/AMD: re-use function wide variables in init_amd()



Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/arch/x86/cpu/amd.c
+++ b/xen/arch/x86/cpu/amd.c
@@ -399,13 +399,9 @@ static void __devinit init_amd(struct cp
                 * revision D (model = 0x14) and later actually support it.
                 * (AMD Erratum #110, docId: 25759).
                 */
-               unsigned int lo, hi;
-
                clear_bit(X86_FEATURE_LAHF_LM, c->x86_capability);
-               if (!rdmsr_amd_safe(0xc001100d, &lo, &hi)) {
-                       hi &= ~1;
-                       wrmsr_amd_safe(0xc001100d, lo, hi);
-               }
+               if (!rdmsr_amd_safe(0xc001100d, &l, &h))
+                       wrmsr_amd_safe(0xc001100d, l, h & ~1);
        }
 
        switch(c->x86)



Attachment: x86-AMD-init-reuse-vars.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.