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-changelog

[Xen-changelog] [xen-unstable] Add option "xen_processor_pm" in xen to e

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Add option "xen_processor_pm" in xen to enable dom0 external Cx control.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 01 May 2008 03:00:21 -0700
Delivery-date: Thu, 01 May 2008 07:47:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1209634858 -3600
# Node ID 74cae5c11f0a2fb81212b52b7a7b38b599fe2ac2
# Parent  5bb9093eb0e9abfcf8537148ba088fd2604e5737
Add option "xen_processor_pm" in xen to enable dom0 external Cx control.

Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>
---
 xen/arch/x86/setup.c |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r 5bb9093eb0e9 -r 74cae5c11f0a xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c      Thu May 01 10:40:01 2008 +0100
+++ b/xen/arch/x86/setup.c      Thu May 01 10:40:58 2008 +0100
@@ -93,6 +93,11 @@ boolean_param("acpi_skip_timer_override"
 /* noapic: Disable IOAPIC setup. */
 extern int skip_ioapic_setup;
 boolean_param("noapic", skip_ioapic_setup);
+
+/* **** Linux config option: propagated to domain0. */
+/* xen_processor_pm: xen control cstate. */
+static int xen_processor_pm;
+boolean_param("xen_processor_pm", xen_processor_pm);
 
 int early_boot = 1;
 
@@ -1008,6 +1013,8 @@ void __init __start_xen(unsigned long mb
             safe_strcat(dom0_cmdline, " acpi=");
             safe_strcat(dom0_cmdline, acpi_param);
         }
+        if ( xen_processor_pm && !strstr(dom0_cmdline, 
"xen_processor_pmbits=") )
+            safe_strcat(dom0_cmdline, " xen_processor_pmbits=1");
 
         cmdline = dom0_cmdline;
     }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Add option "xen_processor_pm" in xen to enable dom0 external Cx control., Xen patchbot-unstable <=