]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Give hypervisor decrementer interrupts their own handler
authorPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2012 13:56:11 +0000 (13:56 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 5 Sep 2012 06:05:19 +0000 (16:05 +1000)
commite8d5762aa43aa91865b531ab7e92892b3b4182f4
treeea6312a3280966141e3bdf4c643f4ffad4506606
parent4f6a8fd3544e2b9f6ac57cff5de9f901f487ba38
powerpc: Give hypervisor decrementer interrupts their own handler

At the moment the handler for hypervisor decrementer interrupts is
the same as for decrementer interrupts, i.e. timer_interrupt().
This is bogus; if we ever do get a hypervisor decrementer interrupt
it won't have anything to do with the next timer event.  In fact
the only time we get hypervisor decrementer interrupts is when one
is left pending on exit from a KVM guest.

When we get a hypervisor decrementer interrupt we don't need to do
anything special to clear it, since they are edge-triggered on the
transition of HDEC from 0 to -1.  Thus this adds an empty handler
function for them.  We don't need to have them masked when interrupts
are soft-disabled, so we use STD_EXCEPTION_HV instead of
MASKABLE_EXCEPTION_HV.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/time.c