Print this page
11909 THREAD_KPRI_RELEASE does nothing of the sort
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ts.h
          +++ new/usr/src/uts/common/sys/ts.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
       25 + * Copyright 2019 Joyent, Inc.
  25   26   */
  26   27  
  27   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   29  /*        All Rights Reserved   */
  29   30  
  30   31  
  31   32  #ifndef _SYS_TS_H
  32   33  #define _SYS_TS_H
  33   34  
  34   35  #include <sys/types.h>
↓ open down ↓ 36 lines elided ↑ open up ↑
  71   72          char    ts_nice;        /* nice value for compatibility         */
  72   73          char    ts_boost;       /* interactive priority offset          */
  73   74          uchar_t ts_flags;       /* flags defined below                  */
  74   75          kthread_t *ts_tp;       /* pointer to thread                    */
  75   76          struct tsproc *ts_next; /* link to next tsproc on list          */
  76   77          struct tsproc *ts_prev; /* link to previous tsproc on list      */
  77   78          caps_sc_t ts_caps;      /* CPU caps specific data               */
  78   79  } tsproc_t;
  79   80  
  80   81  /* flags */
  81      -#define TSKPRI          0x01    /* thread at kernel mode priority       */
       82 +
       83 +/* Formerly: TSKPRI     0x01 - thread at kernel mode priority */
  82   84  #define TSBACKQ         0x02    /* thread goes to back of dispq if preempted */
  83   85  #define TSIA            0x04    /* thread is interactive                */
  84   86  #define TSIASET         0x08    /* interactive thread is "on"           */
  85   87  #define TSIANICED       0x10    /* interactive thread has been niced    */
  86   88  #define TSRESTORE       0x20    /* thread was not preempted, due to schedctl */
  87   89                                  /* restore priority from ts_scpri       */
  88   90  
  89   91  #endif /* _KERNEL */
  90   92  
  91   93  #ifdef  __cplusplus
  92   94  }
  93   95  #endif
  94   96  
  95   97  #endif  /* _SYS_TS_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX