Print this page
5285 pass in cpu_pause_func via pause_cpus

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/cpuvar.h
          +++ new/usr/src/uts/common/sys/cpuvar.h
↓ open down ↓ 644 lines elided ↑ open up ↑
 645  645   * values for safe_list.  Pause state that CPUs are in.
 646  646   */
 647  647  #define PAUSE_IDLE      0               /* normal state */
 648  648  #define PAUSE_READY     1               /* paused thread ready to spl */
 649  649  #define PAUSE_WAIT      2               /* paused thread is spl-ed high */
 650  650  #define PAUSE_DIE       3               /* tell pause thread to leave */
 651  651  #define PAUSE_DEAD      4               /* pause thread has left */
 652  652  
 653  653  void    mach_cpu_pause(volatile char *);
 654  654  
 655      -void    pause_cpus(cpu_t *off_cp);
      655 +void    pause_cpus(cpu_t *off_cp, void *(*func)(void *));
 656  656  void    start_cpus(void);
 657  657  int     cpus_paused(void);
 658  658  
 659  659  void    cpu_pause_init(void);
 660  660  cpu_t   *cpu_get(processorid_t cpun);   /* get the CPU struct associated */
 661  661  
 662  662  int     cpu_online(cpu_t *cp);                  /* take cpu online */
 663  663  int     cpu_offline(cpu_t *cp, int flags);      /* take cpu offline */
 664  664  int     cpu_spare(cpu_t *cp, int flags);        /* take cpu to spare */
 665  665  int     cpu_faulted(cpu_t *cp, int flags);      /* take cpu to faulted */
↓ open down ↓ 167 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX