Print this page
XXXX 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 ↓ 651 lines elided ↑ open up ↑
 652  652   * values for safe_list.  Pause state that CPUs are in.
 653  653   */
 654  654  #define PAUSE_IDLE      0               /* normal state */
 655  655  #define PAUSE_READY     1               /* paused thread ready to spl */
 656  656  #define PAUSE_WAIT      2               /* paused thread is spl-ed high */
 657  657  #define PAUSE_DIE       3               /* tell pause thread to leave */
 658  658  #define PAUSE_DEAD      4               /* pause thread has left */
 659  659  
 660  660  void    mach_cpu_pause(volatile char *);
 661  661  
 662      -void    pause_cpus(cpu_t *off_cp);
      662 +void    pause_cpus(cpu_t *off_cp, void *(*func)(void *));
 663  663  void    start_cpus(void);
 664  664  int     cpus_paused(void);
 665  665  
 666  666  void    cpu_pause_init(void);
 667  667  cpu_t   *cpu_get(processorid_t cpun);   /* get the CPU struct associated */
 668  668  
 669  669  int     cpu_online(cpu_t *cp);                  /* take cpu online */
 670  670  int     cpu_offline(cpu_t *cp, int flags);      /* take cpu offline */
 671  671  int     cpu_spare(cpu_t *cp, int flags);        /* take cpu to spare */
 672  672  int     cpu_faulted(cpu_t *cp, int flags);      /* take cpu to faulted */
↓ open down ↓ 167 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX