Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/disp/fx_dptbl.c
          +++ new/usr/src/uts/common/disp/fx_dptbl.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   27  #include <sys/proc.h>
  30   28  #include <sys/priocntl.h>
  31   29  #include <sys/class.h>
  32   30  #include <sys/disp.h>
  33   31  #include <sys/fx.h>
  34   32  #include <sys/fxpriocntl.h>
  35   33  #include <sys/modctl.h>
  36   34  
  37   35  /*
  38   36   * The purpose of this file is to allow a user to make their own
↓ open down ↓ 2 lines elided ↑ open up ↑
  41   39   * and replacing the FX_DPTBL in usr/kernel/sched.
  42   40   * It is recommended that the system calls be used to change the time
  43   41   * quantums instead of re-building the module.
  44   42   */
  45   43  
  46   44  static struct modlmisc modlmisc = {
  47   45          &mod_miscops, "Fixed priority dispatch table"
  48   46  };
  49   47  
  50   48  static struct modlinkage modlinkage = {
  51      -        MODREV_1, &modlmisc, 0
       49 +        MODREV_1, { &modlmisc, NULL }
  52   50  };
  53   51  
  54   52  int
  55   53  _init()
  56   54  {
  57   55          return (mod_install(&modlinkage));
  58   56  }
  59   57  
  60   58  int
  61   59  _info(struct modinfo *modinfop)
↓ open down ↓ 2 lines elided ↑ open up ↑
  64   62  }
  65   63  
  66   64  #define FXGPUP0 0       /* Global priority for FX user priority 0 */
  67   65  
  68   66  
  69   67  
  70   68  fxdpent_t       config_fx_dptbl[] = {
  71   69  
  72   70  /*      glbpri          qntm */
  73   71  
  74      -        FXGPUP0+0,      20,
  75      -        FXGPUP0+1,      20,
  76      -        FXGPUP0+2,      20,
  77      -        FXGPUP0+3,      20,
  78      -        FXGPUP0+4,      20,
  79      -        FXGPUP0+5,      20,
  80      -        FXGPUP0+6,      20,
  81      -        FXGPUP0+7,      20,
  82      -        FXGPUP0+8,      20,
  83      -        FXGPUP0+9,      20,
  84      -        FXGPUP0+10,     16,
  85      -        FXGPUP0+11,     16,
  86      -        FXGPUP0+12,     16,
  87      -        FXGPUP0+13,     16,
  88      -        FXGPUP0+14,     16,
  89      -        FXGPUP0+15,     16,
  90      -        FXGPUP0+16,     16,
  91      -        FXGPUP0+17,     16,
  92      -        FXGPUP0+18,     16,
  93      -        FXGPUP0+19,     16,
  94      -        FXGPUP0+20,     12,
  95      -        FXGPUP0+21,     12,
  96      -        FXGPUP0+22,     12,
  97      -        FXGPUP0+23,     12,
  98      -        FXGPUP0+24,     12,
  99      -        FXGPUP0+25,     12,
 100      -        FXGPUP0+26,     12,
 101      -        FXGPUP0+27,     12,
 102      -        FXGPUP0+28,     12,
 103      -        FXGPUP0+29,     12,
 104      -        FXGPUP0+30,      8,
 105      -        FXGPUP0+31,      8,
 106      -        FXGPUP0+32,      8,
 107      -        FXGPUP0+33,      8,
 108      -        FXGPUP0+34,      8,
 109      -        FXGPUP0+35,      8,
 110      -        FXGPUP0+36,      8,
 111      -        FXGPUP0+37,      8,
 112      -        FXGPUP0+38,      8,
 113      -        FXGPUP0+39,      8,
 114      -        FXGPUP0+40,      4,
 115      -        FXGPUP0+41,      4,
 116      -        FXGPUP0+42,      4,
 117      -        FXGPUP0+43,      4,
 118      -        FXGPUP0+44,      4,
 119      -        FXGPUP0+45,      4,
 120      -        FXGPUP0+46,      4,
 121      -        FXGPUP0+47,      4,
 122      -        FXGPUP0+48,      4,
 123      -        FXGPUP0+49,      4,
 124      -        FXGPUP0+50,      4,
 125      -        FXGPUP0+51,      4,
 126      -        FXGPUP0+52,      4,
 127      -        FXGPUP0+53,      4,
 128      -        FXGPUP0+54,      4,
 129      -        FXGPUP0+55,      4,
 130      -        FXGPUP0+56,      4,
 131      -        FXGPUP0+57,      4,
 132      -        FXGPUP0+58,      4,
 133      -        FXGPUP0+59,      2,
 134      -        FXGPUP0+60,      2,
       72 +        { FXGPUP0+0,    20 },
       73 +        { FXGPUP0+1,    20 },
       74 +        { FXGPUP0+2,    20 },
       75 +        { FXGPUP0+3,    20 },
       76 +        { FXGPUP0+4,    20 },
       77 +        { FXGPUP0+5,    20 },
       78 +        { FXGPUP0+6,    20 },
       79 +        { FXGPUP0+7,    20 },
       80 +        { FXGPUP0+8,    20 },
       81 +        { FXGPUP0+9,    20 },
       82 +        { FXGPUP0+10,   16 },
       83 +        { FXGPUP0+11,   16 },
       84 +        { FXGPUP0+12,   16 },
       85 +        { FXGPUP0+13,   16 },
       86 +        { FXGPUP0+14,   16 },
       87 +        { FXGPUP0+15,   16 },
       88 +        { FXGPUP0+16,   16 },
       89 +        { FXGPUP0+17,   16 },
       90 +        { FXGPUP0+18,   16 },
       91 +        { FXGPUP0+19,   16 },
       92 +        { FXGPUP0+20,   12 },
       93 +        { FXGPUP0+21,   12 },
       94 +        { FXGPUP0+22,   12 },
       95 +        { FXGPUP0+23,   12 },
       96 +        { FXGPUP0+24,   12 },
       97 +        { FXGPUP0+25,   12 },
       98 +        { FXGPUP0+26,   12 },
       99 +        { FXGPUP0+27,   12 },
      100 +        { FXGPUP0+28,   12 },
      101 +        { FXGPUP0+29,   12 },
      102 +        { FXGPUP0+30,    8 },
      103 +        { FXGPUP0+31,    8 },
      104 +        { FXGPUP0+32,    8 },
      105 +        { FXGPUP0+33,    8 },
      106 +        { FXGPUP0+34,    8 },
      107 +        { FXGPUP0+35,    8 },
      108 +        { FXGPUP0+36,    8 },
      109 +        { FXGPUP0+37,    8 },
      110 +        { FXGPUP0+38,    8 },
      111 +        { FXGPUP0+39,    8 },
      112 +        { FXGPUP0+40,    4 },
      113 +        { FXGPUP0+41,    4 },
      114 +        { FXGPUP0+42,    4 },
      115 +        { FXGPUP0+43,    4 },
      116 +        { FXGPUP0+44,    4 },
      117 +        { FXGPUP0+45,    4 },
      118 +        { FXGPUP0+46,    4 },
      119 +        { FXGPUP0+47,    4 },
      120 +        { FXGPUP0+48,    4 },
      121 +        { FXGPUP0+49,    4 },
      122 +        { FXGPUP0+50,    4 },
      123 +        { FXGPUP0+51,    4 },
      124 +        { FXGPUP0+52,    4 },
      125 +        { FXGPUP0+53,    4 },
      126 +        { FXGPUP0+54,    4 },
      127 +        { FXGPUP0+55,    4 },
      128 +        { FXGPUP0+56,    4 },
      129 +        { FXGPUP0+57,    4 },
      130 +        { FXGPUP0+58,    4 },
      131 +        { FXGPUP0+59,    2 },
      132 +        { FXGPUP0+60,    2 }
 135  133  };
 136  134  
 137  135  pri_t config_fx_maxumdpri = sizeof (config_fx_dptbl) / sizeof (fxdpent_t) - 1;
 138  136  
 139  137  /*
 140  138   * Return the address of config_fx_dptbl
 141  139   */
 142  140  fxdpent_t *
 143  141  fx_getdptbl()
 144  142  {
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX