Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/timer.h
          +++ new/usr/src/uts/common/sys/timer.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  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 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
       26 +/*
       27 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       28 + */
  26   29  
  27   30  /*
  28   31   * Copyright (c) 2015, Joyent, Inc. All rights reserved.
  29   32   */
  30   33  
  31   34  #ifndef _SYS_TIMER_H
  32   35  #define _SYS_TIMER_H
  33   36  
  34   37  #include <sys/types.h>
  35   38  #include <sys/proc.h>
  36   39  #include <sys/thread.h>
  37   40  
  38   41  #ifdef  __cplusplus
  39   42  extern "C" {
  40   43  #endif
  41   44  
  42   45  #ifdef  _KERNEL
  43   46  
  44   47  #define _TIMER_MAX      32
  45      -extern  int     timer_max;              /* patchable via /etc/system */
       48 +extern  volatile int    timer_max;      /* patchable via /etc/system */
  46   49  
  47   50  /*
  48   51   * Bit values for the it_lock field.
  49   52   */
  50   53  #define ITLK_LOCKED             0x01
  51   54  #define ITLK_WANTED             0x02
  52   55  #define ITLK_REMOVE             0x04
  53   56  
  54   57  /*
  55   58   * Bit values for the it_flags field.
↓ open down ↓ 104 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX