Print this page
XXXX pass in cpu_pause_func via pause_cpus

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4/os/mp_states.c
          +++ new/usr/src/uts/sun4/os/mp_states.c
↓ open down ↓ 192 lines elided ↑ open up ↑
 193  193  {
 194  194          mutex_enter(&cpu_lock);
 195  195          if (cpu_are_paused) {
 196  196                  mutex_exit(&cpu_lock);
 197  197                  return;
 198  198          }
 199  199  
 200  200          if (ncpus > 1)
 201  201                  intr_redist_all_cpus_shutdown();
 202  202  
 203      -        pause_cpus(NULL);
      203 +        pause_cpus(NULL, NULL);
 204  204          cpu_are_paused = 1;
 205  205  
 206  206          mutex_exit(&cpu_lock);
 207  207  }
 208  208  
 209  209  int cpu_quiesce_microsecond_sanity_limit = 60 * 1000000;
 210  210  
 211  211  void
 212  212  mp_cpu_quiesce(cpu_t *cp0)
 213  213  {
↓ open down ↓ 119 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX