Print this page
patch cpu-pause-func-deglobalize

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/cpr_impl.c
          +++ new/usr/src/uts/i86pc/os/cpr_impl.c
↓ open down ↓ 729 lines elided ↑ open up ↑
 730  730  static int cpu_are_paused;      /* sic */
 731  731  
 732  732  void
 733  733  i_cpr_stop_other_cpus(void)
 734  734  {
 735  735          mutex_enter(&cpu_lock);
 736  736          if (cpu_are_paused) {
 737  737                  mutex_exit(&cpu_lock);
 738  738                  return;
 739  739          }
 740      -        pause_cpus(NULL);
      740 +        pause_cpus(NULL, NULL);
 741  741          cpu_are_paused = 1;
 742  742  
 743  743          mutex_exit(&cpu_lock);
 744  744  }
 745  745  
 746  746  int
 747  747  i_cpr_is_supported(int sleeptype)
 748  748  {
 749  749          extern int cpr_supported_override;
 750  750          extern int cpr_platform_enable;
↓ open down ↓ 388 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX