x86/HPET: cache MSI message last written
authorJan Beulich <jbeulich@suse.com>
Thu, 25 Oct 2012 12:26:08 +0000 (14:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Oct 2012 12:26:08 +0000 (14:26 +0200)
commit2392dcbcdeb0b038faa523c0f57735c14aa2d60b
tree8a77cb7b445505eaade91873dd8462bb4d60e5f3
parent56760f0034771691a8e90f798abbafd99fe697f0
x86/HPET: cache MSI message last written

Rather than spending measurable amounts of time reading back the most
recently written message, cache it in space previously unused, and thus
accelerate the CPU's entering of the intended C-state.

hpet_msi_read() ends up being unused after this change, but rather than
removing the function, it's being marked "unused" in order - that way
it can easily get used again should a new need for it arise.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hpet.c