summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/asm/hardirq.h
diff options
context:
space:
mode:
authorMike Frysinger2009-06-13 17:32:34 +0200
committerMike Frysinger2009-06-19 03:41:56 +0200
commitd5ce528c8e46fa5afb9ff021514a6658d1758b4e (patch)
tree11dc8dcf621f28201cd4252e3cacb36cf7777504 /arch/blackfin/include/asm/hardirq.h
parentBlackfin: convert signal/mmap to asm-generic (diff)
downloadkernel-qcow2-linux-d5ce528c8e46fa5afb9ff021514a6658d1758b4e.tar.gz
kernel-qcow2-linux-d5ce528c8e46fa5afb9ff021514a6658d1758b4e.tar.xz
kernel-qcow2-linux-d5ce528c8e46fa5afb9ff021514a6658d1758b4e.zip
Blackfin: convert irq/process to asm-generic
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/hardirq.h')
-rw-r--r--arch/blackfin/include/asm/hardirq.h42
1 files changed, 3 insertions, 39 deletions
diff --git a/arch/blackfin/include/asm/hardirq.h b/arch/blackfin/include/asm/hardirq.h
index 717181a1749b..cbd52f86bb9f 100644
--- a/arch/blackfin/include/asm/hardirq.h
+++ b/arch/blackfin/include/asm/hardirq.h
@@ -1,47 +1,11 @@
#ifndef __BFIN_HARDIRQ_H
#define __BFIN_HARDIRQ_H
-#include <linux/cache.h>
-#include <linux/threads.h>
-#include <asm/irq.h>
-
-typedef struct {
- unsigned int __softirq_pending;
- unsigned int __syscall_count;
- struct task_struct *__ksoftirqd_task;
-} ____cacheline_aligned irq_cpustat_t;
-
-#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
-
-/*
- * We put the hardirq and softirq counter into the preemption
- * counter. The bitmask has the following meaning:
- *
- * - bits 0-7 are the preemption count (max preemption depth: 256)
- * - bits 8-15 are the softirq count (max # of softirqs: 256)
- * - bits 16-23 are the hardirq count (max # of hardirqs: 256)
- *
- * - ( bit 26 is the PREEMPT_ACTIVE flag. )
- *
- * PREEMPT_MASK: 0x000000ff
- * HARDIRQ_MASK: 0x0000ff00
- * SOFTIRQ_MASK: 0x00ff0000
- */
-
-#if NR_IRQS > 256
-#define HARDIRQ_BITS 9
-#else
-#define HARDIRQ_BITS 8
-#endif
-
-#ifdef NR_IRQS
-# if (1 << HARDIRQ_BITS) < NR_IRQS
-# error HARDIRQ_BITS is too low!
-# endif
-#endif
-
#define __ARCH_IRQ_EXIT_IRQS_DISABLED 1
extern void ack_bad_irq(unsigned int irq);
+#define ack_bad_irq ack_bad_irq
+
+#include <asm-generic/hardirq.h>
#endif