Merge branch 'oprofile-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git] / arch / s390 / include / asm / hardirq.h
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
12 #ifndef __ASM_HARDIRQ_H
13 #define __ASM_HARDIRQ_H
14
15 #include <linux/threads.h>
16 #include <linux/sched.h>
17 #include <linux/cache.h>
18 #include <linux/interrupt.h>
19 #include <asm/lowcore.h>
20
21 #define local_softirq_pending() (S390_lowcore.softirq_pending)
22
23 #define __ARCH_IRQ_STAT
24 #define __ARCH_HAS_DO_SOFTIRQ
25
26 #define HARDIRQ_BITS    8
27
28 void clock_comparator_work(void);
29
30 static inline unsigned long long local_tick_disable(void)
31 {
32         unsigned long long old;
33
34         old = S390_lowcore.clock_comparator;
35         S390_lowcore.clock_comparator = -1ULL;
36         return old;
37 }
38
39 static inline void local_tick_enable(unsigned long long comp)
40 {
41         S390_lowcore.clock_comparator = comp;
42 }
43
44 #endif /* __ASM_HARDIRQ_H */