Print this page
5285 pass in cpu_pause_func via pause_cpus

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4v/os/mpo.c
          +++ new/usr/src/uts/sun4v/os/mpo.c
↓ open down ↓ 212 lines elided ↑ open up ↑
 213  213   * The read lock must be acquired to read the metadata and the
 214  214   * write locks must be acquired to update it.
 215  215   */
 216  216  #define mpo_rd_lock     kpreempt_disable
 217  217  #define mpo_rd_unlock   kpreempt_enable
 218  218  
 219  219  static void
 220  220  mpo_wr_lock()
 221  221  {
 222  222          mutex_enter(&cpu_lock);
 223      -        pause_cpus(NULL);
      223 +        pause_cpus(NULL, NULL);
 224  224          mutex_exit(&cpu_lock);
 225  225  }
 226  226  
 227  227  static void
 228  228  mpo_wr_unlock()
 229  229  {
 230  230          mutex_enter(&cpu_lock);
 231  231          start_cpus();
 232  232          mutex_exit(&cpu_lock);
 233  233  }
↓ open down ↓ 1807 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX