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

[Xen-changelog] [linux-2.6.18-xen] xen: Fix 32-bit build by fixing wrmsr_safe() usage.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1221200693 -3600
# Node ID e1e8cc97331de14d03e76b5fb592713e407285e0
# Parent  c84f326ff58a4b8bd3e432723061ca7fe419c81f
xen: Fix 32-bit build by fixing wrmsr_safe() usage.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 drivers/acpi/processor_throttling.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r c84f326ff58a -r e1e8cc97331d drivers/acpi/processor_throttling.c
--- a/drivers/acpi/processor_throttling.c       Thu Sep 11 16:52:15 2008 +0100
+++ b/drivers/acpi/processor_throttling.c       Fri Sep 12 07:24:53 2008 +0100
@@ -680,7 +680,7 @@ static int acpi_throttling_wrmsr(struct 
        } else {
                msr = value;
                wrmsr_safe(MSR_IA32_THERM_CONTROL,
-                       msr & 0xffffffff, msr >> 32);
+                          (u32)msr, (u32)(msr >> 32));
                ret = 0;
        }
        return ret;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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