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/sun4v/os/cpc_subr.c
          +++ new/usr/src/uts/sun4v/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) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2021 Joyent, Inc.
  23   24   */
  24   25  
  25   26  /*
  26   27   * sun4u common CPC subroutines.
  27   28   */
  28   29  
  29   30  #include <sys/types.h>
  30   31  #include <sys/time.h>
  31   32  #include <sys/atomic.h>
  32   33  #include <sys/thread.h>
↓ open down ↓ 54 lines elided ↑ open up ↑
  87   88                  intr_enqueue_req(PIL_15, cpc_level15_inum);
  88   89                  enable_vec_intr(pstate_save);
  89   90          }
  90   91  
  91   92          mutex_init(&cp->cpu_cpc_ctxlock, "cpu_cpc_ctxlock", MUTEX_DEFAULT, 0);
  92   93  
  93   94          if (kcpc_counts_include_idle)
  94   95                  return;
  95   96  
  96   97          installctx(t, cp, kcpc_idle_save, kcpc_idle_restore, NULL, NULL,
  97      -            NULL, NULL);
       98 +            NULL, NULL, NULL);
  98   99  }
  99  100  
 100  101  /*
 101  102   * Examine the processor and load an appropriate PCBE.
 102  103   */
 103  104  int
 104  105  kcpc_hw_load_pcbe(void)
 105  106  {
 106  107          char            modname[MODMAXNAMELEN+1];
 107  108          char            *p, *q;
↓ open down ↓ 35 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX