OSDN Git Service

KVM: s390: move timer interrupt checks into own functions
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 18 Mar 2014 09:03:26 +0000 (10:03 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 22 Apr 2014 11:24:52 +0000 (13:24 +0200)
commitbb78c5ec9161561586f8d81d53258b251aab324a
tree53f144fdfb89f96995c2e206da5b5554f32aa75a
parentffad018cc06ea1e3ada0f613676f97d408817182
KVM: s390: move timer interrupt checks into own functions

This patch moves the checks for enabled timer (clock-comparator) interrupts and pending
timer interrupts into own functions, making the code better readable and easier to
maintain.

The method kvm_cpu_has_pending_timer is filled with life.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c