X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-um%2Fhardirq.h;h=1224b2690a235d6029ecca8a02afe6ce45151708;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=da49d29a5c5a1a6250b8d49bec9ea48e37f3585d;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-um/hardirq.h b/include/asm-um/hardirq.h index da49d29a5..1224b2690 100644 --- a/include/asm-um/hardirq.h +++ b/include/asm-um/hardirq.h @@ -1,6 +1,26 @@ -#ifndef __UM_HARDIRQ_H -#define __UM_HARDIRQ_H +/* (c) 2004 cw@f00f.org, GPLv2 blah blah */ -#include "asm/arch/hardirq.h" +#ifndef __ASM_UM_HARDIRQ_H +#define __ASM_UM_HARDIRQ_H -#endif +#include +#include +#include + +/* NOTE: When SMP works again we might want to make this + * ____cacheline_aligned or maybe use per_cpu state? --cw */ +typedef struct { + unsigned int __softirq_pending; +} irq_cpustat_t; + +#include + +/* As this would be very strange for UML to get we BUG() after the + * printk. */ +static inline void ack_bad_irq(unsigned int irq) +{ + printk(KERN_ERR "unexpected IRQ %02x\n", irq); + BUG(); +} + +#endif /* __ASM_UM_HARDIRQ_H */