From: Ian Campbell Subject: Re: [PATCH v2 07/15] xen/arm: split gic driver into generic and gic-v2 driver Date: Thu, 10 Apr 2014 09:58:03 +0100 Message-ID: <1397120283.9862.39.camel@kazak.uk.xensource.com> References: <1396612593-443-1-git-send-email-vijay.kilari@gmail.com> <1396612593-443-8-git-send-email-vijay.kilari@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1396612593-443-8-git-send-email-vijay.kilari@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: vijay.kilari@gmail.com Cc: stefano.stabellini@eu.citrix.com, Prasun.Kapoor@caviumnetworks.com, vijaya.kumar@caviumnetworks.com, julien.grall@linaro.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Fri, 2014-04-04 at 17:26 +0530, vijay.kilari@gmail.com wrote: > From: Vijaya Kumar K > > Existing GIC driver has both generic code and hw specific > code. Segregate GIC low level driver into gic-v2.c and > keep generic code in existing gic.c file This is substantially just code motion, correct? I notice that gicv2_init does not hold the gic lock while calling + gic_{dist,cpu,hyp}_init(), is that intentional? > +static struct gic_hw_operations gic_ops; If you order this file: callbacks gic_hw_ops gicv2_init Then you can avoid this forward declaration and more importantly you can probably mark the struct as const. Ian.