From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 09/27] score: create head files hardirq.h hw_irq.h Date: Tue, 9 Jun 2009 19:33:08 +0200 Message-ID: <200906091933.08483.arnd@arndb.de> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from moutng.kundenserver.de ([212.227.126.177]:61842 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752396AbZFIRdn (ORCPT ); Tue, 9 Jun 2009 13:33:43 -0400 In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: liqin.chen@sunplusct.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , torvalds@linux-foundation.org On Tuesday 09 June 2009, liqin.chen@sunplusct.com wrote: > --- /dev/null > +++ b/arch/score/include/asm/hardirq.h > @@ -0,0 +1,16 @@ > +#ifndef _ASM_SCORE_HARDIRQ_H > +#define _ASM_SCORE_HARDIRQ_H > + > +#include > +#include > + > +typedef struct { > + unsigned int __softirq_pending; > +} ____cacheline_aligned irq_cpustat_t; > + > +/* Standard mappings for irq_cpustat_t above */ > +#include > + > +extern void ack_bad_irq(unsigned int irq); In this case (ack_bad_irq is extern), you can still use the generic file by adding #define ack_bad_irq ack_bad_irq in front of the #include, in order to override the default implementation. Arnd <><