* [PATCH 09/27] score: create head files hardirq.h hw_irq.h
@ 2009-06-09 6:28 ` liqin.chen
0 siblings, 0 replies; 3+ messages in thread
From: liqin.chen @ 2009-06-09 6:28 UTC (permalink / raw)
To: linux-arch, linux-kernel; +Cc: Arnd Bergmann, Andrew Morton, torvalds
From 51b773886b5e793289490363af6bc8227f1fce0c Mon Sep 17 00:00:00 2001
From: Chen Liqin <liqin.chen@sunplusct.com>
Date: Tue, 9 Jun 2009 13:43:09 +0800
Signed-off-by: Chen Liqin <liqin.chen@sunplusct.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 09/27] score: create head files hardirq.h hw_irq.h
@ 2009-06-09 6:28 ` liqin.chen
0 siblings, 0 replies; 3+ messages in thread
From: liqin.chen @ 2009-06-09 6:28 UTC (permalink / raw)
To: linux-arch, linux-kernel; +Cc: Arnd Bergmann, Andrew Morton, torvalds
>From 51b773886b5e793289490363af6bc8227f1fce0c Mon Sep 17 00:00:00 2001
From: Chen Liqin <liqin.chen@sunplusct.com>
Date: Tue, 9 Jun 2009 13:43:09 +0800
Signed-off-by: Chen Liqin <liqin.chen@sunplusct.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 09/27] score: create head files hardirq.h hw_irq.h
2009-06-09 6:28 ` liqin.chen
(?)
@ 2009-06-09 17:33 ` Arnd Bergmann
-1 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2009-06-09 17:33 UTC (permalink / raw)
To: liqin.chen; +Cc: linux-arch, linux-kernel, Andrew Morton, torvalds
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 <><
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-09 17:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-09 6:28 [PATCH 09/27] score: create head files hardirq.h hw_irq.h liqin.chen
2009-06-09 6:28 ` liqin.chen
2009-06-09 17:33 ` Arnd Bergmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.