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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/disp/rt_dptbl.c
          +++ new/usr/src/uts/common/disp/rt_dptbl.c
↓ open down ↓ 20 lines elided ↑ open up ↑
  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   27  /*      Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
  28   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T   */
  29   29  /*        All Rights Reserved   */
  30   30  
  31      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  32      -
  33   31  #include <sys/proc.h>
  34   32  #include <sys/priocntl.h>
  35   33  #include <sys/class.h>
  36   34  #include <sys/disp.h>
  37   35  #include <sys/rt.h>
  38   36  #include <sys/rtpriocntl.h>
  39   37  #include <sys/modctl.h>
  40   38  
  41   39  /*
  42   40   * The purpose of this file is to allow a user to make their own
↓ open down ↓ 5 lines elided ↑ open up ↑
  48   46   * SunOS/Svr4.
  49   47   * It is recommended that the system calls be used to change the time
  50   48   * quantums instead of re-building the module.
  51   49   */
  52   50  
  53   51  static struct modlmisc modlmisc = {
  54   52          &mod_miscops, "realtime dispatch table"
  55   53  };
  56   54  
  57   55  static struct modlinkage modlinkage = {
  58      -        MODREV_1, &modlmisc, 0
       56 +        MODREV_1, { &modlmisc, NULL }
  59   57  };
  60   58  
  61   59  int
  62   60  _init()
  63   61  {
  64   62          return (mod_install(&modlinkage));
  65   63  }
  66   64  
  67   65  int
  68   66  _info(struct modinfo *modinfop)
  69   67  {
  70   68          return (mod_info(&modlinkage, modinfop));
  71   69  }
  72   70  
  73   71  #define RTGPPRIO0       100     /* Global priority for RT priority 0 */
  74   72  
  75   73  rtdpent_t       config_rt_dptbl[] = {
  76   74  
  77   75  /*      prilevel    Time quantum */
  78   76  
  79      -        RTGPPRIO0,      100,
  80      -        RTGPPRIO0+1,    100,
  81      -        RTGPPRIO0+2,    100,
  82      -        RTGPPRIO0+3,    100,
  83      -        RTGPPRIO0+4,    100,
  84      -        RTGPPRIO0+5,    100,
  85      -        RTGPPRIO0+6,    100,
  86      -        RTGPPRIO0+7,    100,
  87      -        RTGPPRIO0+8,    100,
  88      -        RTGPPRIO0+9,    100,
  89      -        RTGPPRIO0+10,   80,
  90      -        RTGPPRIO0+11,   80,
  91      -        RTGPPRIO0+12,   80,
  92      -        RTGPPRIO0+13,   80,
  93      -        RTGPPRIO0+14,   80,
  94      -        RTGPPRIO0+15,   80,
  95      -        RTGPPRIO0+16,   80,
  96      -        RTGPPRIO0+17,   80,
  97      -        RTGPPRIO0+18,   80,
  98      -        RTGPPRIO0+19,   80,
  99      -        RTGPPRIO0+20,   60,
 100      -        RTGPPRIO0+21,   60,
 101      -        RTGPPRIO0+22,   60,
 102      -        RTGPPRIO0+23,   60,
 103      -        RTGPPRIO0+24,   60,
 104      -        RTGPPRIO0+25,   60,
 105      -        RTGPPRIO0+26,   60,
 106      -        RTGPPRIO0+27,   60,
 107      -        RTGPPRIO0+28,   60,
 108      -        RTGPPRIO0+29,   60,
 109      -        RTGPPRIO0+30,   40,
 110      -        RTGPPRIO0+31,   40,
 111      -        RTGPPRIO0+32,   40,
 112      -        RTGPPRIO0+33,   40,
 113      -        RTGPPRIO0+34,   40,
 114      -        RTGPPRIO0+35,   40,
 115      -        RTGPPRIO0+36,   40,
 116      -        RTGPPRIO0+37,   40,
 117      -        RTGPPRIO0+38,   40,
 118      -        RTGPPRIO0+39,   40,
 119      -        RTGPPRIO0+40,   20,
 120      -        RTGPPRIO0+41,   20,
 121      -        RTGPPRIO0+42,   20,
 122      -        RTGPPRIO0+43,   20,
 123      -        RTGPPRIO0+44,   20,
 124      -        RTGPPRIO0+45,   20,
 125      -        RTGPPRIO0+46,   20,
 126      -        RTGPPRIO0+47,   20,
 127      -        RTGPPRIO0+48,   20,
 128      -        RTGPPRIO0+49,   20,
 129      -        RTGPPRIO0+50,   10,
 130      -        RTGPPRIO0+51,   10,
 131      -        RTGPPRIO0+52,   10,
 132      -        RTGPPRIO0+53,   10,
 133      -        RTGPPRIO0+54,   10,
 134      -        RTGPPRIO0+55,   10,
 135      -        RTGPPRIO0+56,   10,
 136      -        RTGPPRIO0+57,   10,
 137      -        RTGPPRIO0+58,   10,
 138      -        RTGPPRIO0+59,   10
       77 +        { RTGPPRIO0,    100 },
       78 +        { RTGPPRIO0+1,  100 },
       79 +        { RTGPPRIO0+2,  100 },
       80 +        { RTGPPRIO0+3,  100 },
       81 +        { RTGPPRIO0+4,  100 },
       82 +        { RTGPPRIO0+5,  100 },
       83 +        { RTGPPRIO0+6,  100 },
       84 +        { RTGPPRIO0+7,  100 },
       85 +        { RTGPPRIO0+8,  100 },
       86 +        { RTGPPRIO0+9,  100 },
       87 +        { RTGPPRIO0+10, 80 },
       88 +        { RTGPPRIO0+11, 80 },
       89 +        { RTGPPRIO0+12, 80 },
       90 +        { RTGPPRIO0+13, 80 },
       91 +        { RTGPPRIO0+14, 80 },
       92 +        { RTGPPRIO0+15, 80 },
       93 +        { RTGPPRIO0+16, 80 },
       94 +        { RTGPPRIO0+17, 80 },
       95 +        { RTGPPRIO0+18, 80 },
       96 +        { RTGPPRIO0+19, 80 },
       97 +        { RTGPPRIO0+20, 60 },
       98 +        { RTGPPRIO0+21, 60 },
       99 +        { RTGPPRIO0+22, 60 },
      100 +        { RTGPPRIO0+23, 60 },
      101 +        { RTGPPRIO0+24, 60 },
      102 +        { RTGPPRIO0+25, 60 },
      103 +        { RTGPPRIO0+26, 60 },
      104 +        { RTGPPRIO0+27, 60 },
      105 +        { RTGPPRIO0+28, 60 },
      106 +        { RTGPPRIO0+29, 60 },
      107 +        { RTGPPRIO0+30, 40 },
      108 +        { RTGPPRIO0+31, 40 },
      109 +        { RTGPPRIO0+32, 40 },
      110 +        { RTGPPRIO0+33, 40 },
      111 +        { RTGPPRIO0+34, 40 },
      112 +        { RTGPPRIO0+35, 40 },
      113 +        { RTGPPRIO0+36, 40 },
      114 +        { RTGPPRIO0+37, 40 },
      115 +        { RTGPPRIO0+38, 40 },
      116 +        { RTGPPRIO0+39, 40 },
      117 +        { RTGPPRIO0+40, 20 },
      118 +        { RTGPPRIO0+41, 20 },
      119 +        { RTGPPRIO0+42, 20 },
      120 +        { RTGPPRIO0+43, 20 },
      121 +        { RTGPPRIO0+44, 20 },
      122 +        { RTGPPRIO0+45, 20 },
      123 +        { RTGPPRIO0+46, 20 },
      124 +        { RTGPPRIO0+47, 20 },
      125 +        { RTGPPRIO0+48, 20 },
      126 +        { RTGPPRIO0+49, 20 },
      127 +        { RTGPPRIO0+50, 10 },
      128 +        { RTGPPRIO0+51, 10 },
      129 +        { RTGPPRIO0+52, 10 },
      130 +        { RTGPPRIO0+53, 10 },
      131 +        { RTGPPRIO0+54, 10 },
      132 +        { RTGPPRIO0+55, 10 },
      133 +        { RTGPPRIO0+56, 10 },
      134 +        { RTGPPRIO0+57, 10 },
      135 +        { RTGPPRIO0+58, 10 },
      136 +        { RTGPPRIO0+59, 10 }
 139  137  };
 140  138  
 141  139  /*
 142  140   * Return the address of config_rt_dptbl
 143  141   */
 144  142  rtdpent_t *
 145  143  rt_getdptbl()
 146  144  {
 147  145          return (config_rt_dptbl);
 148  146  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX