diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2011-01-05 06:47:26 -0500 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2011-01-05 06:47:24 -0500 |
commit | 17eb7a5cfa98627e5b34e9a9a33b4f04f1c8832d (patch) | |
tree | 68defc8cdac6a9eadd674535b9b724a8865c6828 /arch | |
parent | 860dba45e81be2e1ba977617652ae36084daebaf (diff) |
[S390] time: move local_tick_enable()/disable() to timex.h
Move the two functions to timex.h where they make more sense than in
hardirq.h.
No functional change.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/include/asm/hardirq.h | 16 | ||||
-rw-r--r-- | arch/s390/include/asm/timex.h | 18 |
2 files changed, 18 insertions, 16 deletions
diff --git a/arch/s390/include/asm/hardirq.h b/arch/s390/include/asm/hardirq.h index 881d94590aeb..e4155d3eb2cb 100644 --- a/arch/s390/include/asm/hardirq.h +++ b/arch/s390/include/asm/hardirq.h | |||
@@ -21,20 +21,4 @@ | |||
21 | 21 | ||
22 | #define HARDIRQ_BITS 8 | 22 | #define HARDIRQ_BITS 8 |
23 | 23 | ||
24 | void clock_comparator_work(void); | ||
25 | |||
26 | static inline unsigned long long local_tick_disable(void) | ||
27 | { | ||
28 | unsigned long long old; | ||
29 | |||
30 | old = S390_lowcore.clock_comparator; | ||
31 | S390_lowcore.clock_comparator = -1ULL; | ||
32 | return old; | ||
33 | } | ||
34 | |||
35 | static inline void local_tick_enable(unsigned long long comp) | ||
36 | { | ||
37 | S390_lowcore.clock_comparator = comp; | ||
38 | } | ||
39 | |||
40 | #endif /* __ASM_HARDIRQ_H */ | 24 | #endif /* __ASM_HARDIRQ_H */ |
diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h index 09d345a701dc..335afc057d3e 100644 --- a/arch/s390/include/asm/timex.h +++ b/arch/s390/include/asm/timex.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #ifndef _ASM_S390_TIMEX_H | 11 | #ifndef _ASM_S390_TIMEX_H |
12 | #define _ASM_S390_TIMEX_H | 12 | #define _ASM_S390_TIMEX_H |
13 | 13 | ||
14 | #include <asm/lowcore.h> | ||
15 | |||
14 | /* The value of the TOD clock for 1.1.1970. */ | 16 | /* The value of the TOD clock for 1.1.1970. */ |
15 | #define TOD_UNIX_EPOCH 0x7d91048bca000000ULL | 17 | #define TOD_UNIX_EPOCH 0x7d91048bca000000ULL |
16 | 18 | ||
@@ -49,6 +51,22 @@ static inline void store_clock_comparator(__u64 *time) | |||
49 | asm volatile("stckc %0" : "=Q" (*time)); | 51 | asm volatile("stckc %0" : "=Q" (*time)); |
50 | } | 52 | } |
51 | 53 | ||
54 | void clock_comparator_work(void); | ||
55 | |||
56 | static inline unsigned long long local_tick_disable(void) | ||
57 | { | ||
58 | unsigned long long old; | ||
59 | |||
60 | old = S390_lowcore.clock_comparator; | ||
61 | S390_lowcore.clock_comparator = -1ULL; | ||
62 | return old; | ||
63 | } | ||
64 | |||
65 | static inline void local_tick_enable(unsigned long long comp) | ||
66 | { | ||
67 | S390_lowcore.clock_comparator = comp; | ||
68 | } | ||
69 | |||
52 | #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */ | 70 | #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */ |
53 | 71 | ||
54 | typedef unsigned long long cycles_t; | 72 | typedef unsigned long long cycles_t; |