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/fx.c
          +++ new/usr/src/uts/common/disp/fx.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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 (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
  24      - * Copyright 2013, Joyent, Inc. All rights reserved.
       24 + * Copyright 2015, Joyent, Inc.
  25   25   */
  26   26  
  27   27  #include <sys/types.h>
  28   28  #include <sys/param.h>
  29   29  #include <sys/sysmacros.h>
  30   30  #include <sys/cred.h>
  31   31  #include <sys/proc.h>
  32   32  #include <sys/session.h>
  33   33  #include <sys/strsubr.h>
  34   34  #include <sys/user.h>
↓ open down ↓ 29 lines elided ↑ open up ↑
  64   64  
  65   65  static struct modlsched modlsched = {
  66   66          &mod_schedops, "Fixed priority sched class", &csw
  67   67  };
  68   68  
  69   69  static struct modlinkage modlinkage = {
  70   70          MODREV_1, (void *)&modlsched, NULL
  71   71  };
  72   72  
  73   73  
  74      -/*
  75      - * control flags (kparms->fx_cflags).
  76      - */
  77      -#define FX_DOUPRILIM    0x01    /* change user priority limit */
  78      -#define FX_DOUPRI       0x02    /* change user priority */
  79      -#define FX_DOTQ         0x04    /* change FX time quantum */
  80      -
  81      -
  82      -#define FXMAXUPRI 60            /* maximum user priority setting */
  83      -
  84   74  #define FX_MAX_UNPRIV_PRI       0       /* maximum unpriviledge priority */
  85   75  
  86   76  /*
  87   77   * The fxproc_t structures that have a registered callback vector,
  88   78   * are also kept in an array of circular doubly linked lists. A hash on
  89   79   * the thread id (from ddi_get_kt_did()) is used to determine which list
  90   80   * each of such fxproc structures should be placed. Each list has a dummy
  91   81   * "head" which is never removed, so the list is never empty.
  92   82   */
  93   83  
↓ open down ↓ 1753 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX