ia64/xen-unstable

diff xen/arch/x86/hpet.c @ 18806:ed8524f4a044

x86: Re-initialise HPET on resume from S3

Signed-off-by: Guanqun Lu <guanqun.lu@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Nov 18 15:55:14 2008 +0000 (2008-11-18)
parents f12d9595d07c
children 876bffced2b8
line diff
     1.1 --- a/xen/arch/x86/hpet.c	Tue Nov 18 15:39:31 2008 +0000
     1.2 +++ b/xen/arch/x86/hpet.c	Tue Nov 18 15:55:14 2008 +0000
     1.3 @@ -264,15 +264,10 @@ int hpet_legacy_irq_tick(void)
     1.4  
     1.5  u64 hpet_setup(void)
     1.6  {
     1.7 -    static u64 hpet_rate;
     1.8 -    static int initialised;
     1.9 +    u64 hpet_rate;
    1.10      u32 hpet_id, hpet_period, cfg;
    1.11      int i;
    1.12  
    1.13 -    if ( initialised )
    1.14 -        return hpet_rate;
    1.15 -    initialised = 1;
    1.16 -
    1.17      if ( hpet_address == 0 )
    1.18          return 0;
    1.19