Print this page
13902 Fix for 13717 may break 8-disk raidz2
13915 installctx() blocking allocate causes problems
Portions contributed by: Jerry Jelinek <gjelinek@gmail.com>
Change-Id: I934d69946cec42630fc541fa8c7385b862b69ca2

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/ia32/os/cpc_subr.c
          +++ new/usr/src/uts/intel/ia32/os/cpc_subr.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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 (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  23      - * Copyright 2019 Joyent, Inc.
       23 + * Copyright 2021 Joyent, Inc.
  24   24   */
  25   25  
  26   26  /*
  27   27   * x86-specific routines used by the CPU Performance counter driver.
  28   28   */
  29   29  
  30   30  #include <sys/types.h>
  31   31  #include <sys/time.h>
  32   32  #include <sys/atomic.h>
  33   33  #include <sys/regset.h>
↓ open down ↓ 128 lines elided ↑ open up ↑
 162  162                  }
 163  163                  mutex_exit(&cpu_setup_lock);
 164  164          }
 165  165  
 166  166          mutex_init(&cp->cpu_cpc_ctxlock, "cpu_cpc_ctxlock", MUTEX_DEFAULT, 0);
 167  167  
 168  168          if (kcpc_counts_include_idle)
 169  169                  return;
 170  170  
 171  171          installctx(t, cp, kcpc_idle_save, kcpc_idle_restore,
 172      -            NULL, NULL, NULL, NULL);
      172 +            NULL, NULL, NULL, NULL, NULL);
 173  173  }
 174  174  
 175  175  void
 176  176  kcpc_hw_fini(cpu_t *cp)
 177  177  {
 178  178          ASSERT(cp->cpu_idle_thread == NULL);
 179  179  
 180  180          mutex_destroy(&cp->cpu_cpc_ctxlock);
 181  181  }
 182  182  
↓ open down ↓ 92 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX