search for: hpet_tn_cfg

Displaying 1 result from an estimated 1 matches for "hpet_tn_cfg".

2012 Mar 27
0
[PATCH 1/4] x86/hpet: disable before reboot or kexec
...ET_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)); + if ( boot_cfg ) + boot_cfg[i + 1] = cfg; cfg &= ~HPET_TN_ENABLE; hpet_write32(cfg, HPET_Tn_CFG(i)); } @@ -766,3 +776,21 @@ void hpet_resume(void) cfg |= HPET_CFG_ENABLE; hpet_write32(cfg, HPET_CFG); } + +void hpet_disable(void) +{ +...