Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/clock_tick.h
          +++ new/usr/src/uts/common/sys/clock_tick.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 2008 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  #ifndef _SYS_CLOCK_TICK_H
  28   31  #define _SYS_CLOCK_TICK_H
  29   32  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   33  #include <sys/types.h>
  33   34  #include <sys/mutex.h>
  34   35  #include <sys/cpuvar.h>
  35   36  #include <sys/systm.h>
  36   37  #include <sys/cyclic.h>
  37   38  
  38   39  #ifdef  __cplusplus
  39   40  extern "C" {
  40   41  #endif
  41   42  
↓ open down ↓ 59 lines elided ↑ open up ↑
 101  102  #pragma weak            create_softint
 102  103  extern ulong_t          create_softint(uint_t, uint_t (*)(caddr_t, caddr_t),
 103  104                                  caddr_t);
 104  105  #pragma weak            invoke_softint
 105  106  extern void             invoke_softint(processorid_t, ulong_t);
 106  107  #pragma weak            sync_softint
 107  108  extern void             sync_softint(cpuset_t);
 108  109  extern void             clock_tick(kthread_t *, int);
 109  110  extern void             membar_sync(void);
 110  111  
 111      -extern int              hires_tick;
      112 +extern volatile int     hires_tick;
 112  113  #endif  /* _KERNEL */
 113  114  
 114  115  #ifdef  __cplusplus
 115  116  }
 116  117  #endif
 117  118  
 118  119  #endif /* _SYS_CLOCK_TICK_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX