search for: system_reset_latch

Displaying 2 results from an estimated 2 matches for "system_reset_latch".

2012 Mar 27
0
[PATCH 1/4] x86/hpet: disable before reboot or kexec
...y(u32, 2 + last); + hpet_resume(hpet_boot_cfg); hpet_rate = 1000000000000000ULL; /* 10^15 */ (void)do_div(hpet_rate, hpet_period); @@ -740,24 +745,29 @@ u64 __init hpet_setup(void) return hpet_rate; } -void hpet_resume(void) +void hpet_resume(u32 *boot_cfg) { static u32 system_reset_latch; u32 hpet_id, cfg; - unsigned int i; + unsigned int i, last; if ( system_reset_latch == system_reset_counter ) return; system_reset_latch = system_reset_counter; cfg = hpet_read32(HPET_CFG); + if ( boot_cfg ) + *boot_cfg = cfg; cfg &= ~(HPET...
2008 Nov 27
0
[PATCH] x86, hpet: check hpet existence
...r else BAD PERIOD error can be seen. Signed-off-by Kevin Tian <kevin.tian@intel.com> diff -r ab0c1bdede53 xen/arch/x86/hpet.c --- a/xen/arch/x86/hpet.c Wed Nov 26 11:14:26 2008 +0000 +++ b/xen/arch/x86/hpet.c Wed Nov 26 19:22:03 2008 -0500 @@ -273,6 +273,8 @@ return hpet_rate; system_reset_latch = system_reset_counter; + if ( !hpet_address ) + return 0; set_fixmap_nocache(FIX_HPET_BASE, hpet_address); hpet_id = hpet_read32(HPET_ID); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-de...