diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-01-30 03:49:40 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-02-14 09:55:10 -0500 |
commit | 1aae0560d160ee6ebef927a35e4f405306a079df (patch) | |
tree | 70809629dccba1bf31e067dfcd3a20fe58b6d24e /arch/s390/include | |
parent | 58fece7827a7cc40e02bc68a7db8229166984893 (diff) |
s390/time: rename tod clock access functions
Fix name clash with some common code device drivers and add "tod"
to all tod clock access function names.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r-- | arch/s390/include/asm/timex.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h index 4c060bb5b8ea..8ad8af915032 100644 --- a/arch/s390/include/asm/timex.h +++ b/arch/s390/include/asm/timex.h | |||
@@ -15,7 +15,7 @@ | |||
15 | #define TOD_UNIX_EPOCH 0x7d91048bca000000ULL | 15 | #define TOD_UNIX_EPOCH 0x7d91048bca000000ULL |
16 | 16 | ||
17 | /* Inline functions for clock register access. */ | 17 | /* Inline functions for clock register access. */ |
18 | static inline int set_clock(__u64 time) | 18 | static inline int set_tod_clock(__u64 time) |
19 | { | 19 | { |
20 | int cc; | 20 | int cc; |
21 | 21 | ||
@@ -27,7 +27,7 @@ static inline int set_clock(__u64 time) | |||
27 | return cc; | 27 | return cc; |
28 | } | 28 | } |
29 | 29 | ||
30 | static inline int store_clock(__u64 *time) | 30 | static inline int store_tod_clock(__u64 *time) |
31 | { | 31 | { |
32 | int cc; | 32 | int cc; |
33 | 33 | ||
@@ -71,7 +71,7 @@ static inline void local_tick_enable(unsigned long long comp) | |||
71 | 71 | ||
72 | typedef unsigned long long cycles_t; | 72 | typedef unsigned long long cycles_t; |
73 | 73 | ||
74 | static inline unsigned long long get_clock(void) | 74 | static inline unsigned long long get_tod_clock(void) |
75 | { | 75 | { |
76 | unsigned long long clk; | 76 | unsigned long long clk; |
77 | 77 | ||
@@ -83,21 +83,21 @@ static inline unsigned long long get_clock(void) | |||
83 | return clk; | 83 | return clk; |
84 | } | 84 | } |
85 | 85 | ||
86 | static inline void get_clock_ext(char *clk) | 86 | static inline void get_tod_clock_ext(char *clk) |
87 | { | 87 | { |
88 | asm volatile("stcke %0" : "=Q" (*clk) : : "cc"); | 88 | asm volatile("stcke %0" : "=Q" (*clk) : : "cc"); |
89 | } | 89 | } |
90 | 90 | ||
91 | static inline unsigned long long get_clock_xt(void) | 91 | static inline unsigned long long get_tod_clock_xt(void) |
92 | { | 92 | { |
93 | unsigned char clk[16]; | 93 | unsigned char clk[16]; |
94 | get_clock_ext(clk); | 94 | get_tod_clock_ext(clk); |
95 | return *((unsigned long long *)&clk[1]); | 95 | return *((unsigned long long *)&clk[1]); |
96 | } | 96 | } |
97 | 97 | ||
98 | static inline cycles_t get_cycles(void) | 98 | static inline cycles_t get_cycles(void) |
99 | { | 99 | { |
100 | return (cycles_t) get_clock() >> 2; | 100 | return (cycles_t) get_tod_clock() >> 2; |
101 | } | 101 | } |
102 | 102 | ||
103 | int get_sync_clock(unsigned long long *clock); | 103 | int get_sync_clock(unsigned long long *clock); |
@@ -123,9 +123,9 @@ extern u64 sched_clock_base_cc; | |||
123 | * function, otherwise the returned value is not guaranteed to | 123 | * function, otherwise the returned value is not guaranteed to |
124 | * be monotonic. | 124 | * be monotonic. |
125 | */ | 125 | */ |
126 | static inline unsigned long long get_clock_monotonic(void) | 126 | static inline unsigned long long get_tod_clock_monotonic(void) |
127 | { | 127 | { |
128 | return get_clock_xt() - sched_clock_base_cc; | 128 | return get_tod_clock_xt() - sched_clock_base_cc; |
129 | } | 129 | } |
130 | 130 | ||
131 | /** | 131 | /** |