Print this page
5285 pass in cpu_pause_func via pause_cpus

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 ↓ 464 lines elided ↑ open up ↑
 465  465  
 466  466          mutex_enter(&cpu_lock);
 467  467  
 468  468          /*
 469  469           * Suspend on vcpu 0
 470  470           */
 471  471          thread_affinity_set(curthread, 0);
 472  472          kpreempt_disable();
 473  473  
 474  474          if (ncpus > 1)
 475      -                pause_cpus(NULL);
      475 +                pause_cpus(NULL, NULL);
 476  476          /*
 477  477           * We can grab the ec_lock as it's a spinlock with a high SPL. Hence
 478  478           * any holder would have dropped it to get through pause_cpus().
 479  479           */
 480  480          mutex_enter(&ec_lock);
 481  481  
 482  482          /*
 483  483           * From here on in, we can't take locks.
 484  484           */
 485  485  
↓ open down ↓ 331 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX