2009-06-09 06:33:55

by Chen Liqin

[permalink] [raw]
Subject: [PATCH 09/27] score: create head files hardirq.h hw_irq.h

>From 51b773886b5e793289490363af6bc8227f1fce0c Mon Sep 17 00:00:00 2001
From: Chen Liqin <[email protected]>
Date: Tue, 9 Jun 2009 13:43:09 +0800



Signed-off-by: Chen Liqin <[email protected]>
---
arch/score/include/asm/hardirq.h | 16 ++++++++++++++++
arch/score/include/asm/hw_irq.h | 4 ++++
2 files changed, 20 insertions(+), 0 deletions(-)
create mode 100644 arch/score/include/asm/hardirq.h
create mode 100644 arch/score/include/asm/hw_irq.h

diff --git a/arch/score/include/asm/hardirq.h
b/arch/score/include/asm/hardirq.h
new file mode 100644
index 0000000..c8345f5
--- /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);
+
+#endif /* _ASM_SCORE_HARDIRQ_H */
diff --git a/arch/score/include/asm/hw_irq.h
b/arch/score/include/asm/hw_irq.h
new file mode 100644
index 0000000..4caafb2
--- /dev/null
+++ b/arch/score/include/asm/hw_irq.h
@@ -0,0 +1,4 @@
+#ifndef _ASM_SCORE_HW_IRQ_H
+#define _ASM_SCORE_HW_IRQ_H
+
+#endif /* _ASM_SCORE_HW_IRQ_H */
--
1.6.2


2009-06-09 17:33:53

by Arnd Bergmann

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

On Tuesday 09 June 2009, [email protected] 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 <><