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/kvm/interrupt.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/kvm/interrupt.c')
-rw-r--r-- | arch/s390/kvm/interrupt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index 82c481ddef76..87418b50f21c 100644 --- a/arch/s390/kvm/interrupt.c +++ b/arch/s390/kvm/interrupt.c | |||
@@ -362,7 +362,7 @@ static int kvm_cpu_has_interrupt(struct kvm_vcpu *vcpu) | |||
362 | } | 362 | } |
363 | 363 | ||
364 | if ((!rc) && (vcpu->arch.sie_block->ckc < | 364 | if ((!rc) && (vcpu->arch.sie_block->ckc < |
365 | get_clock() + vcpu->arch.sie_block->epoch)) { | 365 | get_tod_clock() + vcpu->arch.sie_block->epoch)) { |
366 | if ((!psw_extint_disabled(vcpu)) && | 366 | if ((!psw_extint_disabled(vcpu)) && |
367 | (vcpu->arch.sie_block->gcr[0] & 0x800ul)) | 367 | (vcpu->arch.sie_block->gcr[0] & 0x800ul)) |
368 | rc = 1; | 368 | rc = 1; |
@@ -402,7 +402,7 @@ int kvm_s390_handle_wait(struct kvm_vcpu *vcpu) | |||
402 | goto no_timer; | 402 | goto no_timer; |
403 | } | 403 | } |
404 | 404 | ||
405 | now = get_clock() + vcpu->arch.sie_block->epoch; | 405 | now = get_tod_clock() + vcpu->arch.sie_block->epoch; |
406 | if (vcpu->arch.sie_block->ckc < now) { | 406 | if (vcpu->arch.sie_block->ckc < now) { |
407 | __unset_cpu_idle(vcpu); | 407 | __unset_cpu_idle(vcpu); |
408 | return 0; | 408 | return 0; |
@@ -492,7 +492,7 @@ void kvm_s390_deliver_pending_interrupts(struct kvm_vcpu *vcpu) | |||
492 | } | 492 | } |
493 | 493 | ||
494 | if ((vcpu->arch.sie_block->ckc < | 494 | if ((vcpu->arch.sie_block->ckc < |
495 | get_clock() + vcpu->arch.sie_block->epoch)) | 495 | get_tod_clock() + vcpu->arch.sie_block->epoch)) |
496 | __try_deliver_ckc_interrupt(vcpu); | 496 | __try_deliver_ckc_interrupt(vcpu); |
497 | 497 | ||
498 | if (atomic_read(&fi->active)) { | 498 | if (atomic_read(&fi->active)) { |