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

[Xen-devel] RE: [PATCH][pvops_dom0][2/4] Introduce the external control operation interface for domain0 ACPI parser


  • To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
  • From: "Yu, Ke" <ke.yu@xxxxxxxxx>
  • Date: Tue, 21 Jul 2009 11:02:59 +0800
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 20 Jul 2009 20:04:58 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcoJeTHT5DPlS/G8Q/uN9iiC91/KYwAJW1Ug
  • Thread-topic: [PATCH][pvops_dom0][2/4] Introduce the external control operation interface for domain0 ACPI parser

>From: Jeremy Fitzhardinge [mailto:jeremy@xxxxxxxx]
>Sent: Tuesday, July 21, 2009 4:32 AM
>To: Yu, Ke
>Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Tian, Kevin
>Subject: Re: [PATCH][pvops_dom0][2/4] Introduce the external control
>operation interface for domain0 ACPI parser
>
>On 07/18/09 23:46, Yu, Ke wrote:
>> diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
>> index abbe2bb..49ccb84 100644
>> --- a/drivers/acpi/processor_idle.c
>> +++ b/drivers/acpi/processor_idle.c
>> @@ -425,6 +425,12 @@ static int
>acpi_processor_get_power_info_cst(struct acpi_processor *pr)
>>
>>                 cx.power = obj->integer.value;
>>
>> +#ifdef CONFIG_PROCESSOR_EXTERNAL_CONTROL
>> +               /* cache control methods to notify external logic */
>> +               if (processor_pm_external())
>> +                       memcpy(&cx.reg, reg, sizeof(*reg));
>> +#endif /* CONFIG_PROCESSOR_EXTERNAL_CONTROL */
>>
>
>This #ifdef should be unnecessary.

This "#ifdef" is the counterpart of the following patch. The cx.reg definition 
is embraced by CONFIG_PROCESSOR_EXTERNAL_CONTROL, so the code manipulating on 
the cx.reg also need "#ifdef CONFIG_PROCESSOR_EXTERNAL_CONTROL"

> diff --git a/include/acpi/processor.h b/include/acpi/processor.h
> index b09c4fd..d6bb2d2 100644
> --- a/include/acpi/processor.h
> +++ b/include/acpi/processor.h
> @@ -77,6 +77,10 @@ struct acpi_processor_cx {
>         struct acpi_processor_cx_policy promotion;
>         struct acpi_processor_cx_policy demotion;
>         char desc[ACPI_CX_DESC_LEN];
> +#ifdef CONFIG_PROCESSOR_EXTERNAL_CONTROL
> +       /* Require raw information for external control logic */
> +       struct acpi_power_register reg;
> +#endif /* CONFIG_PROCESSOR_EXTERNAL_CONTROL */
>  };

Best Regards
Ke

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


 


Rackspace

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