ia64/xen-unstable

changeset 18839:840b761e07c1

x86, hpet: check hpet existence

Add check on hpet existence which is removed accidentally
in previous changeset (18790). Or else BAD PERIOD error can be seen.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Nov 27 11:24:52 2008 +0000 (2008-11-27)
parents b1a38832be05
children 8d5474a5c66b
files xen/arch/x86/hpet.c
line diff
     1.1 --- a/xen/arch/x86/hpet.c	Thu Nov 27 11:22:38 2008 +0000
     1.2 +++ b/xen/arch/x86/hpet.c	Thu Nov 27 11:24:52 2008 +0000
     1.3 @@ -273,6 +273,9 @@ u64 hpet_setup(void)
     1.4          return hpet_rate;
     1.5      system_reset_latch = system_reset_counter;
     1.6  
     1.7 +    if ( hpet_address == 0 )
     1.8 +        return 0;
     1.9 +
    1.10      set_fixmap_nocache(FIX_HPET_BASE, hpet_address);
    1.11  
    1.12      hpet_id = hpet_read32(HPET_ID);