Print this page
XXXX pass in cpu_pause_func via pause_cpus

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/machdep.c
          +++ new/usr/src/uts/i86pc/os/machdep.c
↓ open down ↓ 275 lines elided ↑ open up ↑
 276  276  #endif
 277  277          /*
 278  278           * stop other cpus and raise our priority.  since there is only
 279  279           * one active cpu after this, and our priority will be too high
 280  280           * for us to be preempted, we're essentially single threaded
 281  281           * from here on out.
 282  282           */
 283  283          (void) spl6();
 284  284          if (!panicstr) {
 285  285                  mutex_enter(&cpu_lock);
 286      -                pause_cpus(NULL);
      286 +                pause_cpus(NULL, NULL);
 287  287                  mutex_exit(&cpu_lock);
 288  288          }
 289  289  
 290  290          /*
 291  291           * If the system is panicking, the preloaded kernel is valid, and
 292  292           * fastreboot_onpanic has been set, and the system has been up for
 293  293           * longer than fastreboot_onpanic_uptime (default to 10 minutes),
 294  294           * choose Fast Reboot.
 295  295           */
 296  296          if (fcn == AD_BOOT && panicstr && newkernel.fi_valid &&
↓ open down ↓ 1146 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX