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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/disp/fss.c
          +++ new/usr/src/uts/common/disp/fss.c
↓ open down ↓ 266 lines elided ↑ open up ↑
 267  267  extern struct mod_ops mod_schedops;
 268  268  
 269  269  /*
 270  270   * Module linkage information for the kernel.
 271  271   */
 272  272  static struct modlsched modlsched = {
 273  273          &mod_schedops, "fair share scheduling class", &fss
 274  274  };
 275  275  
 276  276  static struct modlinkage modlinkage = {
 277      -        MODREV_1, (void *)&modlsched, NULL
      277 +        MODREV_1, { (void *)&modlsched, NULL }
 278  278  };
 279  279  
 280  280  #define FSS_MAXUPRI     60
 281  281  
 282  282  /*
 283  283   * The fssproc_t structures are kept in an array of circular doubly linked
 284  284   * lists.  A hash on the thread pointer is used to determine which list each
 285  285   * thread should be placed in.  Each list has a dummy "head" which is never
 286  286   * removed, so the list is never empty.  fss_update traverses these lists to
 287  287   * update the priorities of threads that have been waiting on the run queue.
↓ open down ↓ 100 lines elided ↑ open up ↑
 388  388  static void     fss_tick(kthread_t *);
 389  389  static void     fss_wakeup(kthread_t *);
 390  390  static int      fss_donice(kthread_t *, cred_t *, int, int *);
 391  391  static int      fss_doprio(kthread_t *, cred_t *, int, int *);
 392  392  static pri_t    fss_globpri(kthread_t *);
 393  393  static void     fss_yield(kthread_t *);
 394  394  static void     fss_nullsys();
 395  395  
 396  396  static struct classfuncs fss_classfuncs = {
 397  397          /* class functions */
 398      -        fss_admin,
 399      -        fss_getclinfo,
 400      -        fss_parmsin,
 401      -        fss_parmsout,
 402      -        fss_vaparmsin,
 403      -        fss_vaparmsout,
 404      -        fss_getclpri,
 405      -        fss_alloc,
 406      -        fss_free,
      398 +        {   fss_admin,
      399 +            fss_getclinfo,
      400 +            fss_parmsin,
      401 +            fss_parmsout,
      402 +            fss_vaparmsin,
      403 +            fss_vaparmsout,
      404 +            fss_getclpri,
      405 +            fss_alloc,
      406 +            fss_free },
 407  407  
 408  408          /* thread functions */
 409      -        fss_enterclass,
 410      -        fss_exitclass,
 411      -        fss_canexit,
 412      -        fss_fork,
 413      -        fss_forkret,
 414      -        fss_parmsget,
 415      -        fss_parmsset,
 416      -        fss_stop,
 417      -        fss_exit,
 418      -        fss_active,
 419      -        fss_inactive,
 420      -        fss_swapin,
 421      -        fss_swapout,
 422      -        fss_trapret,
 423      -        fss_preempt,
 424      -        fss_setrun,
 425      -        fss_sleep,
 426      -        fss_tick,
 427      -        fss_wakeup,
 428      -        fss_donice,
 429      -        fss_globpri,
 430      -        fss_nullsys,    /* set_process_group */
 431      -        fss_yield,
 432      -        fss_doprio,
      409 +        {   fss_enterclass,
      410 +            fss_exitclass,
      411 +            fss_canexit,
      412 +            fss_fork,
      413 +            fss_forkret,
      414 +            fss_parmsget,
      415 +            fss_parmsset,
      416 +            fss_stop,
      417 +            fss_exit,
      418 +            fss_active,
      419 +            fss_inactive,
      420 +            fss_swapin,
      421 +            fss_swapout,
      422 +            fss_trapret,
      423 +            fss_preempt,
      424 +            fss_setrun,
      425 +            fss_sleep,
      426 +            fss_tick,
      427 +            fss_wakeup,
      428 +            fss_donice,
      429 +            fss_globpri,
      430 +            fss_nullsys,        /* set_process_group */
      431 +            fss_yield,
      432 +            fss_doprio },
 433  433  };
 434  434  
 435  435  int
 436  436  _init()
 437  437  {
 438  438          return (mod_install(&modlinkage));
 439  439  }
 440  440  
 441  441  int
 442  442  _fini()
↓ open down ↓ 2549 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX