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/sun4u/os/cpc_subr.c
          +++ new/usr/src/uts/sun4u/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 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 ↓ 55 lines elided ↑ open up ↑
  88   89                  intr_enqueue_req(PIL_15, cpc_level15_inum);
  89   90                  enable_vec_intr(pstate_save);
  90   91          }
  91   92  
  92   93          mutex_init(&cp->cpu_cpc_ctxlock, "cpu_cpc_ctxlock", MUTEX_DEFAULT, 0);
  93   94  
  94   95          if (kcpc_counts_include_idle)
  95   96                  return;
  96   97  
  97   98          installctx(t, cp, kcpc_idle_save, kcpc_idle_restore, NULL, NULL,
  98      -            NULL, NULL);
       99 +            NULL, NULL, NULL);
  99  100  }
 100  101  
 101  102  /*
 102  103   * Examine the processor and load an appropriate PCBE.
 103  104   */
 104  105  int
 105  106  kcpc_hw_load_pcbe(void)
 106  107  {
 107  108          uint64_t        ver = ultra_getver();
 108  109  
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX