From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753923Ab0EQIRH (ORCPT ); Mon, 17 May 2010 04:17:07 -0400 Received: from www.tglx.de ([62.245.132.106]:58996 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752686Ab0EQIRD (ORCPT ); Mon, 17 May 2010 04:17:03 -0400 Date: Mon, 17 May 2010 10:16:40 +0200 (CEST) From: Thomas Gleixner To: Feng Tang cc: Ingo Molnar , "H.Peter Anvin" , "Brown, Len" , LKML , "Pan, Jacob jun" , Alan Cox Subject: Re: [PATCH] x86: unify current 3 similar ways of saving IRQ info In-Reply-To: <20100517162521.6fc93552@feng-i7> Message-ID: References: <20100517153156.4439d62b@feng-i7> <20100517162521.6fc93552@feng-i7> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 May 2010, Feng Tang wrote: > On Mon, 17 May 2010 16:07:05 +0800 > Thomas Gleixner wrote: > > > On Mon, 17 May 2010, Feng Tang wrote: > > > > > { > > > if (mp_irq->dstapic != m->dstapic) > > > @@ -211,7 +211,8 @@ static int __init mp_irq_mpc_intsrc_cmp(struct > > > mpc_intsrc *mp_irq, return 0; > > > } > > > > > > -static void __init MP_intsrc_info(struct mpc_intsrc *m) > > > +/* Will also be called in acpi/sfi related code */ > > > +void mp_save_irq(struct mpc_intsrc *m) > > > > Again, this code is called from __init context only and should stay > > __init. > > Hi Thomas, > > The reason I removed the __init is it will be called by non __init functions > from acpi/boot.c and mrst.c Why should that happen ? Thanks, tglx