Skip to content

Commit

Permalink
avr32: convert to asm-generic/hardirq.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Haavard Skinnemoen committed Dec 14, 2009
1 parent 559300b commit ce378f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
19 changes: 1 addition & 18 deletions arch/avr32/include/asm/hardirq.h
Original file line number Diff line number Diff line change
@@ -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 */
9 changes: 0 additions & 9 deletions arch/avr32/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@
#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)
{
Expand Down

0 comments on commit ce378f7

Please sign in to comment.