Print this page
XXXX introduce drv_sectohz
*** 436,446 ****
mutex_enter(&port->fp_mutex);
for (cnt = 0; (port->fp_job_head) && (cnt < fp_cmd_wait_cnt);
cnt++) {
mutex_exit(&port->fp_mutex);
! delay(drv_usectohz(1000000));
mutex_enter(&port->fp_mutex);
}
if (port->fp_job_head) {
mutex_exit(&port->fp_mutex);
--- 436,446 ----
mutex_enter(&port->fp_mutex);
for (cnt = 0; (port->fp_job_head) && (cnt < fp_cmd_wait_cnt);
cnt++) {
mutex_exit(&port->fp_mutex);
! delay(drv_sectohz(1));
mutex_enter(&port->fp_mutex);
}
if (port->fp_job_head) {
mutex_exit(&port->fp_mutex);
*** 1516,1526 ****
while ((port->fp_soft_state &
(FP_SOFT_IN_STATEC_CB | FP_SOFT_IN_UNSOL_CB)) &&
(delay_count < 30)) {
mutex_exit(&port->fp_mutex);
delay_count++;
! delay(drv_usectohz(1000000));
mutex_enter(&port->fp_mutex);
}
if (port->fp_soft_state &
(FP_SOFT_IN_STATEC_CB | FP_SOFT_IN_UNSOL_CB)) {
--- 1516,1526 ----
while ((port->fp_soft_state &
(FP_SOFT_IN_STATEC_CB | FP_SOFT_IN_UNSOL_CB)) &&
(delay_count < 30)) {
mutex_exit(&port->fp_mutex);
delay_count++;
! delay(drv_sectohz(1));
mutex_enter(&port->fp_mutex);
}
if (port->fp_soft_state &
(FP_SOFT_IN_STATEC_CB | FP_SOFT_IN_UNSOL_CB)) {
*** 1686,1696 ****
delay_count = 0;
while ((port->fp_soft_state & (FP_SOFT_IN_STATEC_CB |
FP_SOFT_IN_UNSOL_CB)) && (delay_count < 30)) {
mutex_exit(&port->fp_mutex);
delay_count++;
! delay(drv_usectohz(1000000));
mutex_enter(&port->fp_mutex);
}
if (port->fp_soft_state & (FP_SOFT_IN_STATEC_CB |
FP_SOFT_IN_UNSOL_CB)) {
--- 1686,1696 ----
delay_count = 0;
while ((port->fp_soft_state & (FP_SOFT_IN_STATEC_CB |
FP_SOFT_IN_UNSOL_CB)) && (delay_count < 30)) {
mutex_exit(&port->fp_mutex);
delay_count++;
! delay(drv_sectohz(1));
mutex_enter(&port->fp_mutex);
}
if (port->fp_soft_state & (FP_SOFT_IN_STATEC_CB |
FP_SOFT_IN_UNSOL_CB)) {