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] Re: xen: IPI interrupts not resumed early enough on suspend/

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: [Xen-devel] Re: xen: IPI interrupts not resumed early enough on suspend/resume
From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Date: Fri, 7 Oct 2011 18:29:56 +0200 (CEST)
Cc: "Rafael J. Wysocki" <rjw@xxxxxxx>, linux-kernel <linux-kernel@xxxxxxxxxxxxxxx>, Jeremy Fitzhardinge <Jeremy.Fitzhardinge@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Fri, 07 Oct 2011 09:30:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1318001583.21903.355.camel@xxxxxxxxxxxxxxxxxxxxxx>
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>
References: <1317654626.21903.72.camel@xxxxxxxxxxxxxxxxxxxxxx> <alpine.LFD.2.02.1110032033530.1489@ionos> <1317668908.11991.20.camel@xxxxxxxxxxxxxxxxxxxx> <alpine.LFD.2.02.1110032229250.1489@ionos> <1318001583.21903.355.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.02 (LFD 1266 2009-07-14)
On Fri, 7 Oct 2011, Ian Campbell wrote:
> On Mon, 2011-10-03 at 22:35 +0200, Thomas Gleixner wrote:
>  /**
> + * irq_pm_syscore_ops - enable interrupt lines early
> + *
> + * Enable all interrupt lines with %IRQF_EARLY_RESUME set
> + */
> +static void irq_pm_syscore_resume(void)
> +{
> +     struct irq_desc *desc;
> +     int irq;
> +
> +     for_each_irq_desc(irq, desc) {
> +             unsigned long flags;
> +
> +             if (!desc->action || !(desc->action->flags & IRQF_EARLY_RESUME))
> +                     continue;
> +
> +             raw_spin_lock_irqsave(&desc->lock, flags);
> +             __enable_irq(desc, irq, true);
> +             raw_spin_unlock_irqrestore(&desc->lock, flags);
> +     }
> +}

Come on, this is a full copy of resume_device_irqs(). What about
having a common function with an (bool early) argument and call it
from both syscore and resume_device?

Thanks,

        tglx

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