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/kernel/smp.c | |
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/kernel/smp.c')
-rw-r--r-- | arch/s390/kernel/smp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 7433a2f9e5cc..549c9d173c0f 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -365,16 +365,16 @@ void smp_emergency_stop(cpumask_t *cpumask) | |||
365 | u64 end; | 365 | u64 end; |
366 | int cpu; | 366 | int cpu; |
367 | 367 | ||
368 | end = get_clock() + (1000000UL << 12); | 368 | end = get_tod_clock() + (1000000UL << 12); |
369 | for_each_cpu(cpu, cpumask) { | 369 | for_each_cpu(cpu, cpumask) { |
370 | struct pcpu *pcpu = pcpu_devices + cpu; | 370 | struct pcpu *pcpu = pcpu_devices + cpu; |
371 | set_bit(ec_stop_cpu, &pcpu->ec_mask); | 371 | set_bit(ec_stop_cpu, &pcpu->ec_mask); |
372 | while (__pcpu_sigp(pcpu->address, SIGP_EMERGENCY_SIGNAL, | 372 | while (__pcpu_sigp(pcpu->address, SIGP_EMERGENCY_SIGNAL, |
373 | 0, NULL) == SIGP_CC_BUSY && | 373 | 0, NULL) == SIGP_CC_BUSY && |
374 | get_clock() < end) | 374 | get_tod_clock() < end) |
375 | cpu_relax(); | 375 | cpu_relax(); |
376 | } | 376 | } |
377 | while (get_clock() < end) { | 377 | while (get_tod_clock() < end) { |
378 | for_each_cpu(cpu, cpumask) | 378 | for_each_cpu(cpu, cpumask) |
379 | if (pcpu_stopped(pcpu_devices + cpu)) | 379 | if (pcpu_stopped(pcpu_devices + cpu)) |
380 | cpumask_clear_cpu(cpu, cpumask); | 380 | cpumask_clear_cpu(cpu, cpumask); |
@@ -694,7 +694,7 @@ static void __init smp_detect_cpus(void) | |||
694 | */ | 694 | */ |
695 | static void __cpuinit smp_start_secondary(void *cpuvoid) | 695 | static void __cpuinit smp_start_secondary(void *cpuvoid) |
696 | { | 696 | { |
697 | S390_lowcore.last_update_clock = get_clock(); | 697 | S390_lowcore.last_update_clock = get_tod_clock(); |
698 | S390_lowcore.restart_stack = (unsigned long) restart_stack; | 698 | S390_lowcore.restart_stack = (unsigned long) restart_stack; |
699 | S390_lowcore.restart_fn = (unsigned long) do_restart; | 699 | S390_lowcore.restart_fn = (unsigned long) do_restart; |
700 | S390_lowcore.restart_data = 0; | 700 | S390_lowcore.restart_data = 0; |
@@ -947,7 +947,7 @@ static ssize_t show_idle_time(struct device *dev, | |||
947 | unsigned int sequence; | 947 | unsigned int sequence; |
948 | 948 | ||
949 | do { | 949 | do { |
950 | now = get_clock(); | 950 | now = get_tod_clock(); |
951 | sequence = ACCESS_ONCE(idle->sequence); | 951 | sequence = ACCESS_ONCE(idle->sequence); |
952 | idle_time = ACCESS_ONCE(idle->idle_time); | 952 | idle_time = ACCESS_ONCE(idle->idle_time); |
953 | idle_enter = ACCESS_ONCE(idle->clock_idle_enter); | 953 | idle_enter = ACCESS_ONCE(idle->clock_idle_enter); |