avr32: convert to asm-generic/hardirq.h
authorChristoph Hellwig <hch@lst.de>
Tue, 17 Nov 2009 22:39:31 +0000 (14:39 -0800)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 14 Dec 2009 18:24:28 +0000 (19:24 +0100)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
arch/avr32/include/asm/hardirq.h
arch/avr32/kernel/irq.c

index 015bc75ea79852cd6bd41d923ac26375ba0e7ba4..9e36e3ff77d2a721eaef286367b0322ea48c2017 100644 (file)
@@ -1,23 +1,6 @@
 #ifndef __ASM_AVR32_HARDIRQ_H
 #define __ASM_AVR32_HARDIRQ_H
-
-#include <linux/threads.h>
-#include <asm/irq.h>
-
 #ifndef __ASSEMBLY__
-
-#include <linux/cache.h>
-
-/* entry.S is sensitive to the offsets of these fields */
-typedef struct {
-       unsigned int __softirq_pending;
-} ____cacheline_aligned irq_cpustat_t;
-
-void ack_bad_irq(unsigned int irq);
-
-/* Standard mappings for irq_cpustat_t above */
-#include <linux/irq_cpustat.h>
-
+#include <asm-generic/hardirq.h>
 #endif /* __ASSEMBLY__ */
-
 #endif /* __ASM_AVR32_HARDIRQ_H */
index 9f572229d3183752e0c602ef9106b94617fd99ea..09904d22309f8c604dfb4b1bdaf64d15aa4fc44e 100644 (file)
 #include <linux/seq_file.h>
 #include <linux/sysdev.h>
 
-/*
- * 'what should we do if we get a hw irq event on an illegal vector'.
- * each architecture has to answer this themselves.
- */
-void ack_bad_irq(unsigned int irq)
-{
-       printk("unexpected IRQ %u\n", irq);
-}
-
 /* May be overridden by platform code */
 int __weak nmi_enable(void)
 {