aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vioapic.c
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@xensource.com>2007-01-20 11:17:38 +0000
committerTim Deegan <Tim.Deegan@xensource.com>2007-01-20 11:17:38 +0000
commit3969aaf2765ffcda14b4d53a5b0980f0d443331b (patch)
tree0a0919319f9beb9b179b5af2ff72582f7e786395 /xen/arch/x86/hvm/vioapic.c
parente105919b0120a0eccfe59ece2ce545ddd6f0881f (diff)
downloadxen-3969aaf2765ffcda14b4d53a5b0980f0d443331b.tar.gz
xen-3969aaf2765ffcda14b4d53a5b0980f0d443331b.tar.bz2
xen-3969aaf2765ffcda14b4d53a5b0980f0d443331b.zip
[HVM] Save/restore cleanups 01: PIT
Define public structure for the saved PIT data and use it instead of a series of explicit loads and stores. Don't save ephemeral Xen timer structs; rebuild them instead. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/vioapic.c')
-rw-r--r--xen/arch/x86/hvm/vioapic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/vioapic.c b/xen/arch/x86/hvm/vioapic.c
index 7e23726b29..120693ef09 100644
--- a/xen/arch/x86/hvm/vioapic.c
+++ b/xen/arch/x86/hvm/vioapic.c
@@ -312,7 +312,7 @@ static uint32_t ioapic_get_delivery_bitmask(
static inline int pit_channel0_enabled(void)
{
PITState *pit = &current->domain->arch.hvm_domain.pl_time.vpit;
- struct periodic_time *pt = &pit->channels[0].pt;
+ struct periodic_time *pt = &pit->pt[0];
return pt->enabled;
}