aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/early.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-01-30 03:49:40 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-02-14 09:55:10 -0500
commit1aae0560d160ee6ebef927a35e4f405306a079df (patch)
tree70809629dccba1bf31e067dfcd3a20fe58b6d24e /arch/s390/kernel/early.c
parent58fece7827a7cc40e02bc68a7db8229166984893 (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/kernel/early.c')
-rw-r--r--arch/s390/kernel/early.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c
index 1f0eee9e7daa..1ee98e56fc6a 100644
--- a/arch/s390/kernel/early.c
+++ b/arch/s390/kernel/early.c
@@ -47,10 +47,10 @@ static void __init reset_tod_clock(void)
47{ 47{
48 u64 time; 48 u64 time;
49 49
50 if (store_clock(&time) == 0) 50 if (store_tod_clock(&time) == 0)
51 return; 51 return;
52 /* TOD clock not running. Set the clock to Unix Epoch. */ 52 /* TOD clock not running. Set the clock to Unix Epoch. */
53 if (set_clock(TOD_UNIX_EPOCH) != 0 || store_clock(&time) != 0) 53 if (set_tod_clock(TOD_UNIX_EPOCH) != 0 || store_tod_clock(&time) != 0)
54 disabled_wait(0); 54 disabled_wait(0);
55 55
56 sched_clock_base_cc = TOD_UNIX_EPOCH; 56 sched_clock_base_cc = TOD_UNIX_EPOCH;
@@ -173,7 +173,7 @@ static noinline __init void create_kernel_nss(void)
173 } 173 }
174 174
175 /* re-initialize cputime accounting. */ 175 /* re-initialize cputime accounting. */
176 sched_clock_base_cc = get_clock(); 176 sched_clock_base_cc = get_tod_clock();
177 S390_lowcore.last_update_clock = sched_clock_base_cc; 177 S390_lowcore.last_update_clock = sched_clock_base_cc;
178 S390_lowcore.last_update_timer = 0x7fffffffffffffffULL; 178 S390_lowcore.last_update_timer = 0x7fffffffffffffffULL;
179 S390_lowcore.user_timer = 0; 179 S390_lowcore.user_timer = 0;