From: Ian Campbell Subject: Re: [PATCH v2 07/16] xen/arm: IRQ: Move IRQ management from gic.c to irq.c Date: Mon, 7 Apr 2014 14:07:57 +0100 Message-ID: <1396876077.22845.76.camel@kazak.uk.xensource.com> References: <1396557727-19102-1-git-send-email-julien.grall@linaro.org> <1396557727-19102-8-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WX9HN-0001RJ-Qh for xen-devel@lists.xenproject.org; Mon, 07 Apr 2014 13:08:02 +0000 In-Reply-To: <1396557727-19102-8-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, 2014-04-03 at 21:41 +0100, Julien Grall wrote: > The file gic.c contains functions and variables which is not related to the GIC: > - release_irq > - setup_irq > - gic_route_irq_to_guest > - {,local_}irq_desc > > Move all theses functions/variables in irq.c and split gic_route_irq_to_guest > in 2 parts: Please can you separate pure code motion from refactoring. e.g. You could do the split first leaving route_dt_irq_to_guest in gic.c and then move it along with everything else. > - route_dt_irq_to_guest: setup the desc > - gic_route_irq_to_guest: setup correctly the GIC and the desc > handler > > +void release_irq(unsigned int irq) > +{ > + struct irq_desc *desc; > + unsigned long flags; > + struct irqaction *action; Indentation.