hardirq.h 897 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * include/asm-s390/hardirq.h
  3. *
  4. * S390 version
  5. * Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation
  6. * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
  7. * Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com)
  8. *
  9. * Derived from "include/asm-i386/hardirq.h"
  10. */
  11. #ifndef __ASM_HARDIRQ_H
  12. #define __ASM_HARDIRQ_H
  13. #include <asm/lowcore.h>
  14. #define local_softirq_pending() (S390_lowcore.softirq_pending)
  15. #define __ARCH_IRQ_STAT
  16. #define __ARCH_HAS_DO_SOFTIRQ
  17. #define HARDIRQ_BITS 8
  18. void clock_comparator_work(void);
  19. static inline unsigned long long local_tick_disable(void)
  20. {
  21. unsigned long long old;
  22. old = S390_lowcore.clock_comparator;
  23. S390_lowcore.clock_comparator = -1ULL;
  24. return old;
  25. }
  26. static inline void local_tick_enable(unsigned long long comp)
  27. {
  28. S390_lowcore.clock_comparator = comp;
  29. }
  30. #endif /* __ASM_HARDIRQ_H */