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

Re: [Xen-devel] [PATCH] x86: get the MWAIT idle driver in sync with the ACPI one


  • To: Jan Beulich <JBeulich@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Tue, 02 Oct 2012 18:00:32 +0100
  • Delivery-date: Tue, 02 Oct 2012 17:00:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac2gv26yPGLaNTjFEEagrxWIihJU0w==
  • Thread-topic: [Xen-devel] [PATCH] x86: get the MWAIT idle driver in sync with the ACPI one

On 02/10/2012 15:46, "Jan Beulich" <JBeulich@xxxxxxxx> wrote:

> .. with respect to behavior when there is no HPET broadcast support
> (for using the PIT broadcast instead, it requires explicitly enabling
> CPU idle management).
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Acked-by: Keir Fraser <keir@xxxxxxx>

> --- a/xen/arch/x86/cpu/mwait-idle.c
> +++ b/xen/arch/x86/cpu/mwait-idle.c
> @@ -501,11 +501,14 @@ int __init mwait_idle_init(struct notifi
> return -ENODEV;
>  
> err = mwait_idle_probe();
> - if (!err) {
> -  if (!boot_cpu_has(X86_FEATURE_ARAT))
> -   hpet_broadcast_init();
> -  if (!lapic_timer_init())
> + if (!err && !boot_cpu_has(X86_FEATURE_ARAT)) {
> +  hpet_broadcast_init();
> +  if (xen_cpuidle < 0 && !hpet_broadcast_is_available())
> +   err = -ENODEV;
> +  else if(!lapic_timer_init())
> err = -EINVAL;
> +  if (err)
> +   pr_debug(PREFIX "not used (%d)\n", err);
> }
> if (!err) {
> nfb->notifier_call = mwait_idle_cpu_init;
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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