Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4v/vm/mach_vm_dep.c
          +++ new/usr/src/uts/sun4v/vm/mach_vm_dep.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       27 + */
  25   28  
  26   29  /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  27   30  /*      All Rights Reserved   */
  28   31  
  29   32  /*
  30   33   * Portions of this source code were derived from Berkeley 4.3 BSD
  31   34   * under license from the Regents of the University of California.
  32   35   */
  33   36  
  34   37  /*
↓ open down ↓ 15 lines elided ↑ open up ↑
  50   53  #include <sys/machsystm.h>
  51   54  #include <vm/seg_kmem.h>
  52   55  #include <sys/stack.h>
  53   56  #include <sys/atomic.h>
  54   57  #include <sys/promif.h>
  55   58  #include <sys/random.h>
  56   59  
  57   60  uint_t page_colors = 0;
  58   61  uint_t page_colors_mask = 0;
  59   62  uint_t page_coloring_shift = 0;
  60      -int consistent_coloring;
       63 +volatile int consistent_coloring;
  61   64  int update_proc_pgcolorbase_after_fork = 1;
  62   65  
  63   66  uint_t mmu_page_sizes = MMU_PAGE_SIZES;
  64   67  uint_t max_mmu_page_sizes = MMU_PAGE_SIZES;
  65   68  uint_t mmu_hashcnt = MAX_HASHCNT;
  66   69  uint_t max_mmu_hashcnt = MAX_HASHCNT;
  67   70  size_t mmu_ism_pagesize = DEFAULT_ISM_PAGESIZE;
  68   71  
  69   72  /*
  70   73   * A bitmask of the page sizes supported by hardware based upon szc.
↓ open down ↓ 729 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX