OSDN Git Service

ppc: remove idle_timer logic
authorShivaprasad G Bhat <sbhat@linux.ibm.com>
Thu, 25 Jul 2019 14:15:08 +0000 (09:15 -0500)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 21 Aug 2019 07:17:39 +0000 (17:17 +1000)
commit1e8f51e856621d3615a21cfea6f0baf055cbcce8
tree42ecccf9e5f1e26ef51e2e19aa1e9e7325436d12
parent93eac7b8f44738f7d2f4ba4460d67b04af5b0b99
ppc: remove idle_timer logic

The logic is broken for multiple vcpu guests, also causing memory leak.
The logic is in place to handle kvm not having KVM_CAP_PPC_IRQ_LEVEL,
which is part of the kernel now since 2.6.37. Instead of fixing the
leak, drop the redundant logic which is not excercised on new kernels
anymore. Exit with error on older kernels.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Message-Id: <156406409479.19996.7606556689856621111.stgit@lep8c.aus.stglabs.ibm.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/kvm.c