ia64/xen-unstable

changeset 17546:74cae5c11f0a

Add option "xen_processor_pm" in xen to enable dom0 external Cx control.

Signed-off-by: Wei Gang <gang.wei@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu May 01 10:40:58 2008 +0100 (2008-05-01)
parents 5bb9093eb0e9
children 93bc6d9b5f31
files xen/arch/x86/setup.c
line diff
     1.1 --- a/xen/arch/x86/setup.c	Thu May 01 10:40:01 2008 +0100
     1.2 +++ b/xen/arch/x86/setup.c	Thu May 01 10:40:58 2008 +0100
     1.3 @@ -94,6 +94,11 @@ boolean_param("acpi_skip_timer_override"
     1.4  extern int skip_ioapic_setup;
     1.5  boolean_param("noapic", skip_ioapic_setup);
     1.6  
     1.7 +/* **** Linux config option: propagated to domain0. */
     1.8 +/* xen_processor_pm: xen control cstate. */
     1.9 +static int xen_processor_pm;
    1.10 +boolean_param("xen_processor_pm", xen_processor_pm);
    1.11 +
    1.12  int early_boot = 1;
    1.13  
    1.14  cpumask_t cpu_present_map;
    1.15 @@ -1008,6 +1013,8 @@ void __init __start_xen(unsigned long mb
    1.16              safe_strcat(dom0_cmdline, " acpi=");
    1.17              safe_strcat(dom0_cmdline, acpi_param);
    1.18          }
    1.19 +        if ( xen_processor_pm && !strstr(dom0_cmdline, "xen_processor_pmbits=") )
    1.20 +            safe_strcat(dom0_cmdline, " xen_processor_pmbits=1");
    1.21  
    1.22          cmdline = dom0_cmdline;
    1.23      }