Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/littleneck/io/pcf8574_lneck.c
          +++ new/usr/src/uts/sun4u/littleneck/io/pcf8574_lneck.c
↓ open down ↓ 545 lines elided ↑ open up ↑
 546  546          }
 547  547  
 548  548          /*
 549  549           * regs[0] contains the bus number and regs[1] contains the device
 550  550           * address of the i2c device. 0x7c is the device address of the
 551  551           * i2c device from which the key switch position is read.
 552  552           */
 553  553          if (regs[0] == 0 && regs[1] == 0x7c) {
 554  554                  abort_seq_handler = littleneck_abort_seq_handler;
 555  555                  keypoll_timeout_hz =
 556      -                    drv_usectohz(LNECK_KEY_POLL_INTVL * MICROSEC);
      556 +                    drv_sectohz(LNECK_KEY_POLL_INTVL);
 557  557                  littleneck_ks_poll(unitp);
 558  558          }
 559  559  
 560  560          ddi_prop_free(regs);
 561  561  
 562  562          mutex_init(&unitp->pcf8574_mutex, NULL, MUTEX_DRIVER, NULL);
 563  563  
 564  564          return (DDI_SUCCESS);
 565  565  }
 566  566  
↓ open down ↓ 85 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX