]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commit
xen/evtchn: Handle VIRQ_TIMER before any other hardirq in event loop.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 22 Sep 2010 09:25:42 +0000 (10:25 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 22 Sep 2010 09:25:42 +0000 (10:25 +0100)
commitcc22f9adab34832128c45bbeef54c13551c24e90
tree9c1ddd1d695037197941d65fed7dfa06b083bde9
parenta842f3f13d1ff4e7a34fdc9b227df88af8dea05c
xen/evtchn: Handle VIRQ_TIMER before any other hardirq in event loop.

This avoids any other hardirq handler seeing a very stale jiffies
value immediately after wakeup from a long idle period. The one
observable symptom of this was a USB keyboard, with software keyboard
repeat, which would always repeat a key immediately that it was
pressed. This is due to the key press waking the guest, the key
handler immediately runs, sees an old jiffies value, and then that
jiffies value significantly updated, before the key is unpressed.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
drivers/xen/core/evtchn.c