Print this page
XXXX pass in cpu_pause_func via pause_cpus

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86xpv/os/mp_xen.c
          +++ new/usr/src/uts/i86xpv/os/mp_xen.c
↓ open down ↓ 578 lines elided ↑ open up ↑
 579  579  void
 580  580  mp_enter_barrier(void)
 581  581  {
 582  582          hrtime_t last_poke_time = 0;
 583  583          int poke_allowed = 0;
 584  584          int done = 0;
 585  585          int i;
 586  586  
 587  587          ASSERT(MUTEX_HELD(&cpu_lock));
 588  588  
 589      -        pause_cpus(NULL);
      589 +        pause_cpus(NULL, NULL);
 590  590  
 591  591          while (!done) {
 592  592                  done = 1;
 593  593                  poke_allowed = 0;
 594  594  
 595  595                  if (xpv_gethrtime() - last_poke_time > POKE_TIMEOUT) {
 596  596                          last_poke_time = xpv_gethrtime();
 597  597                          poke_allowed = 1;
 598  598                  }
 599  599  
↓ open down ↓ 460 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX