hardirq.h 953 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * S390 version
  4. * Copyright IBM Corp. 1999, 2000
  5. * Author(s): Martin Schwidefsky ([email protected]),
  6. * Denis Joseph Barrow ([email protected],[email protected])
  7. *
  8. * Derived from "include/asm-i386/hardirq.h"
  9. */
  10. #ifndef __ASM_HARDIRQ_H
  11. #define __ASM_HARDIRQ_H
  12. #include <asm/lowcore.h>
  13. #define local_softirq_pending() (S390_lowcore.softirq_pending)
  14. #define set_softirq_pending(x) (S390_lowcore.softirq_pending = (x))
  15. #define or_softirq_pending(x) (S390_lowcore.softirq_pending |= (x))
  16. /*
  17. * Not sure what the right thing is here for s390,
  18. * but returning 0 will result in no logical change
  19. * from what happens now
  20. */
  21. #define __cpu_softirq_pending(x) (0)
  22. #define __ARCH_IRQ_STAT
  23. #define __ARCH_IRQ_EXIT_IRQS_DISABLED
  24. static inline void ack_bad_irq(unsigned int irq)
  25. {
  26. printk(KERN_CRIT "unexpected IRQ trap at vector %02x\n", irq);
  27. }
  28. #endif /* __ASM_HARDIRQ_H */