Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4/io/px/px_ib.c
          +++ new/usr/src/uts/sun4/io/px/px_ib.c
↓ open down ↓ 1058 lines elided ↑ open up ↑
1059 1059                  ih_p->ih_intr_flags |= PX_INTR_RETARGET;
1060 1060                  old_ih_p->ih_intr_flags |= PX_INTR_RETARGET;
1061 1061          }
1062 1062  
1063 1063          start_time = gethrtime();
1064 1064          while (((ih_p->ih_intr_flags & PX_INTR_RETARGET) &&
1065 1065              (old_ih_p->ih_intr_flags & PX_INTR_RETARGET)) ||
1066 1066              (old_ih_p->ih_intr_flags & PX_INTR_PENDING)) {
1067 1067  
1068 1068                  /* Wait for one second */
1069      -                delay(drv_usectohz(1000000));
     1069 +                delay(drv_sectohz(1));
1070 1070  
1071 1071                  end_time = gethrtime() - start_time;
1072 1072                  if (end_time > px_ib_msix_retarget_timeout) {
1073 1073                          cmn_err(CE_WARN, "MSIX retarget %x is not completed, "
1074 1074                              "even after waiting %llx ticks\n",
1075 1075                              msi_num, end_time);
1076 1076                          break;
1077 1077                  }
1078 1078          }
1079 1079  
↓ open down ↓ 166 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX