Re: [PATCH 09/27] score: create head files hardirq.h hw_irq.h

From: Arnd Bergmann
Date: Tue Jun 09 2009 - 13:33:56 EST


On Tuesday 09 June 2009, liqin.chen@xxxxxxxxxxxxx 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 <><
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/