Print this page
XXXX introduce drv_sectohz
*** 121,131 ****
if (arg == GCPU_XPV_MCH_POLL_REARM &&
gcpu_xpv_mch_poll_interval_secs != 0) {
gcpu_xpv_mch_poll_timeoutid = timeout(gcpu_xpv_mch_poll,
GCPU_XPV_MCH_POLL_REARM,
! drv_usectohz(gcpu_xpv_mch_poll_interval_secs * MICROSEC));
}
}
/*
* gcpu_mca_poll_init is called from gcpu_mca_init for each cpu handle
--- 121,131 ----
if (arg == GCPU_XPV_MCH_POLL_REARM &&
gcpu_xpv_mch_poll_interval_secs != 0) {
gcpu_xpv_mch_poll_timeoutid = timeout(gcpu_xpv_mch_poll,
GCPU_XPV_MCH_POLL_REARM,
! drv_sectohz(gcpu_xpv_mch_poll_interval_secs));
}
}
/*
* gcpu_mca_poll_init is called from gcpu_mca_init for each cpu handle
*** 181,192 ****
* poll MCH state so we do that via a timeout.
*/
if (gcpu_xpv_mch_poll_interval_secs != 0) {
gcpu_xpv_mch_poll_timeoutid =
timeout(gcpu_xpv_mch_poll, GCPU_XPV_MCH_POLL_REARM,
! drv_usectohz(gcpu_xpv_mch_poll_interval_secs *
! MICROSEC));
}
/*
* Register handler for VIRQ_MCA; once this is in place
* the hypervisor will begin to forward polled MCA observations
--- 181,191 ----
* poll MCH state so we do that via a timeout.
*/
if (gcpu_xpv_mch_poll_interval_secs != 0) {
gcpu_xpv_mch_poll_timeoutid =
timeout(gcpu_xpv_mch_poll, GCPU_XPV_MCH_POLL_REARM,
! drv_sectohz(gcpu_xpv_mch_poll_interval_secs));
}
/*
* Register handler for VIRQ_MCA; once this is in place
* the hypervisor will begin to forward polled MCA observations