Displaying 2 results from an estimated 2 matches for "hpet_boot_cfg".
2012 Mar 27
0
[PATCH 1/4] x86/hpet: disable before reboot or kexec
...6/hpet.c
+++ b/xen/arch/x86/hpet.c
@@ -566,7 +566,7 @@ void hpet_broadcast_resume(void)
if ( !hpet_events )
return;
- hpet_resume();
+ hpet_resume(NULL);
cfg = hpet_read32(HPET_CFG);
@@ -704,10 +704,13 @@ int hpet_legacy_irq_tick(void)
return 1;
}
+static u32 *hpet_boot_cfg;
+
u64 __init hpet_setup(void)
{
static u64 __initdata hpet_rate;
u32 hpet_id, hpet_period;
+ unsigned int last;
if ( hpet_rate )
return hpet_rate;
@@ -732,7 +735,9 @@ u64 __init hpet_setup(void)
return 0;
}
- hpet_resume();
+ last = (hpet_id &am...
2012 Mar 27
0
[PATCH 2/4] x86/hpet: replace disabling of legacy broadcast
...ble();
- if ( hpet_broadcast_is_available() )
- hpet_disable_legacy_broadcast();
-
crashing_cpu = smp_processor_id();
local_irq_count(crashing_cpu) = 0;
--- a/xen/arch/x86/hpet.c
+++ b/xen/arch/x86/hpet.c
@@ -783,7 +783,11 @@ void hpet_disable(void)
u32 id;
if ( !hpet_boot_cfg )
+ {
+ if ( hpet_broadcast_is_available() )
+ hpet_disable_legacy_broadcast();
return;
+ }
hpet_write32(*hpet_boot_cfg & ~HPET_CFG_ENABLE, HPET_CFG);
--- a/xen/arch/x86/smp.c
+++ b/xen/arch/x86/smp.c
@@ -349,12 +349,13 @@ void __stop_this_cpu(void)...