WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] linux: follow-up adjustments for platform.h interfac

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux: follow-up adjustments for platform.h interface header change
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 16 Jun 2009 16:39:03 +0100
Cc: John Levon <levon@xxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 16 Jun 2009 08:39:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This should be applied once the public header adjustments from
"[PATCH] introduce mechanism to check standard conformance of headers"
got sync-ed to the legacy 2.6.18 tree.

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

--- 2009-06-10.orig/arch/i386/kernel/acpi/processor_extcntl_xen.c
+++ 2009-06-10/arch/i386/kernel/acpi/processor_extcntl_xen.c
@@ -89,13 +89,13 @@
                return -EINVAL;
        }
 
-       op.u.set_pminfo.power.count = count;
-       op.u.set_pminfo.power.flags.bm_control = pr->flags.bm_control;
-       op.u.set_pminfo.power.flags.bm_check = pr->flags.bm_check;
-       op.u.set_pminfo.power.flags.has_cst = pr->flags.has_cst;
-       op.u.set_pminfo.power.flags.power_setup_done = 
pr->flags.power_setup_done;
+       op.u.set_pminfo.u.power.count = count;
+       op.u.set_pminfo.u.power.flags.bm_control = pr->flags.bm_control;
+       op.u.set_pminfo.u.power.flags.bm_check = pr->flags.bm_check;
+       op.u.set_pminfo.u.power.flags.has_cst = pr->flags.has_cst;
+       op.u.set_pminfo.u.power.flags.power_setup_done = 
pr->flags.power_setup_done;
 
-       set_xen_guest_handle(op.u.set_pminfo.power.states, buf);
+       set_xen_guest_handle(op.u.set_pminfo.power.states, buf);
        ret = HYPERVISOR_platform_op(&op);
        kfree(buf);
        return ret;
@@ -118,7 +118,7 @@
        if (!pr)
                return -EINVAL;
 
-       perf = &op.u.set_pminfo.perf;
+       perf = &op.u.set_pminfo.u.perf;
        px = pr->performance;
 
        switch(action) {
--- 2009-06-10.orig/arch/ia64/kernel/processor_extcntl_xen.c
+++ 2009-06-10/arch/ia64/kernel/processor_extcntl_xen.c
@@ -58,7 +58,7 @@
        if (!pr || !pr->performance)
                return -EINVAL;
 
-       perf = &op.u.set_pminfo.perf;
+       perf = &op.u.set_pminfo.u.perf;
        px = pr->performance;
 
        switch(action) {




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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux: follow-up adjustments for platform.h interface header change, Jan Beulich <=