[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200906091933.08483.arnd@arndb.de>
Date: Tue, 9 Jun 2009 19:33:08 +0200
From: Arnd Bergmann <arnd@...db.de>
To: liqin.chen@...plusct.com
Cc: linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
torvalds@...ux-foundation.org
Subject: Re: [PATCH 09/27] score: create head files hardirq.h hw_irq.h
On Tuesday 09 June 2009, liqin.chen@...plusct.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 <><
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists