Print this page
OS-4915 want FX high priority zone configuration option
OS-4925 ps pri shows misleading value for zone in RT scheduling class
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/disp/rt.c
          +++ new/usr/src/uts/common/disp/rt.c
↓ 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 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25      - * Copyright 2013 Joyent, Inc.  All rights reserved.
       25 + * Copyright 2015 Joyent, Inc.
  26   26   */
  27   27  
  28   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  29   29  /*        All Rights Reserved   */
  30   30  
  31   31  #include <sys/types.h>
  32   32  #include <sys/param.h>
  33   33  #include <sys/sysmacros.h>
  34   34  #include <sys/cred.h>
  35   35  #include <sys/proc.h>
↓ open down ↓ 60 lines elided ↑ open up ↑
  96   96   */
  97   97  
  98   98  /*
  99   99   * Extern declarations for variables defined in the rt master file
 100  100   */
 101  101  #define RTMAXPRI 59
 102  102  
 103  103  pri_t rt_maxpri = RTMAXPRI;     /* maximum real-time priority */
 104  104  rtdpent_t *rt_dptbl;      /* real-time dispatcher parameter table */
 105  105  
 106      -/*
 107      - * control flags (kparms->rt_cflags).
 108      - */
 109      -#define RT_DOPRI        0x01    /* change priority */
 110      -#define RT_DOTQ         0x02    /* change RT time quantum */
 111      -#define RT_DOSIG        0x04    /* change RT time quantum signal */
 112      -
 113  106  static int      rt_admin(caddr_t, cred_t *);
 114  107  static int      rt_enterclass(kthread_t *, id_t, void *, cred_t *, void *);
 115  108  static int      rt_fork(kthread_t *, kthread_t *, void *);
 116  109  static int      rt_getclinfo(void *);
 117  110  static int      rt_getclpri(pcpri_t *);
 118  111  static int      rt_parmsin(void *);
 119  112  static int      rt_parmsout(void *, pc_vaparms_t *);
 120  113  static int      rt_vaparmsin(void *, pc_vaparms_t *);
 121  114  static int      rt_vaparmsout(void *, pc_vaparms_t *);
 122  115  static int      rt_parmsset(kthread_t *, void *, id_t, cred_t *);
↓ open down ↓ 1010 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX