Messages in this thread | | | 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 |
| |
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 <linux/threads.h> > +#include <linux/irq.h> > + > +typedef struct { > + unsigned int __softirq_pending; > +} ____cacheline_aligned irq_cpustat_t; > + > +/* Standard mappings for irq_cpustat_t above */ > +#include <linux/irq_cpustat.h> > + > +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 <><
| |