[RFC PATCH v1 62/70] virt, kvm, arm, arch_timer: _FROZEN Cleanup

From: Chen, Gong
Date: Tue Jul 22 2014 - 22:38:56 EST


Remove XXX_FROZEN state from kvm/arm/arch_timer.

Signed-off-by: Chen, Gong <gong.chen@xxxxxxxxxxxxxxx>
---
virt/kvm/arm/arch_timer.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/virt/kvm/arm/arch_timer.c b/virt/kvm/arm/arch_timer.c
index 22fa819..169512d 100644
--- a/virt/kvm/arm/arch_timer.c
+++ b/virt/kvm/arm/arch_timer.c
@@ -220,13 +220,11 @@ u64 kvm_arm_timer_get_reg(struct kvm_vcpu *vcpu, u64 regid)
static int kvm_timer_cpu_notify(struct notifier_block *self,
unsigned long action, void *cpu)
{
- switch (action) {
+ switch (action & ~CPU_TASKS_FROZEN) {
case CPU_STARTING:
- case CPU_STARTING_FROZEN:
kvm_timer_init_interrupt(NULL);
break;
case CPU_DYING:
- case CPU_DYING_FROZEN:
disable_percpu_irq(host_vtimer_irq);
break;
}
--
2.0.0.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/