Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
          +++ new/usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c
↓ open down ↓ 592 lines elided ↑ open up ↑
 593  593                  extern void halt(char *);
 594  594                  halt("Power off the System");   /* just in case */
 595  595          }
 596  596  
 597  597          /*
 598  598           * else, graceful shutdown with inittab and all getting involved
 599  599           */
 600  600          psignal(initpp, SIGPWR);
 601  601  
 602  602          (void) timeout(xen_dirty_shutdown, arg,
 603      -            SHUTDOWN_TIMEOUT_SECS * drv_usectohz(MICROSEC));
      603 +            drv_sectohz(SHUTDOWN_TIMEOUT_SECS));
 604  604  }
 605  605  
 606  606  /*ARGSUSED*/
 607  607  static void
 608  608  xen_shutdown_handler(struct xenbus_watch *watch, const char **vec,
 609  609          unsigned int len)
 610  610  {
 611  611          char *str;
 612  612          xenbus_transaction_t xbt;
 613  613          int err, shutdown_code = SHUTDOWN_INVALID;
↓ open down ↓ 203 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX