Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86xpv/os/xen_machdep.c
          +++ new/usr/src/uts/i86xpv/os/xen_machdep.c
↓ open down ↓ 792 lines elided ↑ open up ↑
 793  793                  extern void halt(char *);
 794  794                  halt("Power off the System");   /* just in case */
 795  795          }
 796  796  
 797  797          /*
 798  798           * else, graceful shutdown with inittab and all getting involved
 799  799           */
 800  800          psignal(initpp, SIGPWR);
 801  801  
 802  802          (void) timeout(xen_dirty_shutdown, arg,
 803      -            SHUTDOWN_TIMEOUT_SECS * drv_usectohz(MICROSEC));
      803 +            drv_sectohz(SHUTDOWN_TIMEOUT_SECS));
 804  804  }
 805  805  
 806  806  /*ARGSUSED*/
 807  807  static void
 808  808  xen_shutdown_handler(struct xenbus_watch *watch, const char **vec,
 809  809          unsigned int len)
 810  810  {
 811  811          char *str;
 812  812          xenbus_transaction_t xbt;
 813  813          int err, shutdown_code = SHUTDOWN_INVALID;
↓ open down ↓ 584 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX