hardirq.h 618 B

1234567891011121314151617181920212223242526
  1. /* (c) 2004 cw@f00f.org, GPLv2 blah blah */
  2. #ifndef __ASM_UM_HARDIRQ_H
  3. #define __ASM_UM_HARDIRQ_H
  4. #include <linux/config.h>
  5. #include <linux/threads.h>
  6. #include <linux/irq.h>
  7. /* NOTE: When SMP works again we might want to make this
  8. * ____cacheline_aligned or maybe use per_cpu state? --cw */
  9. typedef struct {
  10. unsigned int __softirq_pending;
  11. } irq_cpustat_t;
  12. #include <linux/irq_cpustat.h>
  13. /* As this would be very strange for UML to get we BUG() after the
  14. * printk. */
  15. static inline void ack_bad_irq(unsigned int irq)
  16. {
  17. printk(KERN_ERR "unexpected IRQ %02x\n", irq);
  18. BUG();
  19. }
  20. #endif /* __ASM_UM_HARDIRQ_H */