[PATCH] h8300: convert to asm-generic/hardirq.h

From: Christoph Hellwig
Date: Tue Aug 04 2009 - 10:51:32 EST



Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: linux-2.6/arch/h8300/include/asm/hardirq.h
===================================================================
--- linux-2.6.orig/arch/h8300/include/asm/hardirq.h 2009-07-27 14:32:58.383148670 +0200
+++ linux-2.6/arch/h8300/include/asm/hardirq.h 2009-07-27 14:55:42.321901764 +0200
@@ -1,18 +1,7 @@
#ifndef __H8300_HARDIRQ_H
#define __H8300_HARDIRQ_H

-#include <linux/kernel.h>
-#include <linux/threads.h>
-#include <linux/interrupt.h>
-#include <linux/irq.h>
-
-typedef struct {
- unsigned int __softirq_pending;
-} ____cacheline_aligned irq_cpustat_t;
-
-#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
-
-extern void ack_bad_irq(unsigned int irq);
+#include <asm/irq.h>

#define HARDIRQ_BITS 8

@@ -25,4 +14,6 @@ extern void ack_bad_irq(unsigned int irq
# error HARDIRQ_BITS is too low!
#endif

+#include <asm-generic/hardirq.h>
+
#endif
Index: linux-2.6/arch/h8300/kernel/irq.c
===================================================================
--- linux-2.6.orig/arch/h8300/kernel/irq.c 2009-07-27 14:53:45.658148907 +0200
+++ linux-2.6/arch/h8300/kernel/irq.c 2009-07-27 14:55:35.116901397 +0200
@@ -81,11 +81,6 @@ struct irq_chip h8300irq_chip = {
.end = h8300_end_irq,
};

-void ack_bad_irq(unsigned int irq)
-{
- printk("unexpected IRQ trap at vector %02x\n", irq);
-}
-
#if defined(CONFIG_RAMKERNEL)
static unsigned long __init *get_vector_address(void)
{
--
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/