search for: hpet_cfg_legacy

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

2009 Sep 30
0
[PATCH] Disable HPET broadcast mode on kexec
...,8 +604,9 @@ void hpet_disable_legacy_broadcast(void) { u32 cfg; + unsigned long flags; - spin_lock_irq(&legacy_hpet_event.lock); + spin_lock_irqsave(&legacy_hpet_event.lock, flags); legacy_hpet_event.flags |= HPET_EVT_DISABLE; @@ -619,7 +620,7 @@ cfg &= ~HPET_CFG_LEGACY; hpet_write32(cfg, HPET_CFG); - spin_unlock_irq(&legacy_hpet_event.lock); + spin_unlock_irqrestore(&legacy_hpet_event.lock, flags); smp_send_event_check_mask(&cpu_online_map); } _______________________________________________ Xen-devel mailing list Xen-devel@lists....
2012 Mar 27
0
[PATCH 1/4] x86/hpet: disable before reboot or kexec
...t_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_CFG_ENABLE | HPET_CFG_LEGACY); hpet_write32(cfg, HPET_CFG); hpet_id = hpet_read32(HPET_ID); - for ( i = 0; i <= ((hpet_id >> 8) & 31); i++ ) + last = (hpet_id & HPET_ID_NUMBER) >> HPET_ID_NUMBER_SHIFT; + for ( i = 0; i <= last; ++i ) { cfg = hpet_read32(HPET_Tn_CFG(i...