Print this page
3625 we only need one thread_create_intr

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/disp/thread_intr.c
          +++ new/usr/src/uts/common/disp/thread_intr.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  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 2006 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -/*
  28      - * FILE NOTICE BEGIN
  29      - *
  30      - * This file should not be modified.  If you wish to modify it or have it
  31      - * modified, please contact Sun Microsystems at <LFI149367@-sun-.-com->
  32      - * (without anti-spam dashes)
  33      - *
  34      - * FILE NOTICE END
  35      - */
  36      -
  37      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  38      -
  39   27  #include <sys/cpuvar.h>
  40   28  #include <sys/stack.h>
  41   29  #include <vm/seg_kp.h>
  42   30  #include <sys/proc.h>
  43   31  #include <sys/pset.h>
  44   32  #include <sys/sysmacros.h>
  45   33  
  46   34  /*
  47   35   * Create and initialize an interrupt thread.
  48   36   */
↓ open down ↓ 54 lines elided ↑ open up ↑
 103   91   */
 104   92  void
 105   93  cpu_intr_alloc(cpu_t *cp, int n)
 106   94  {
 107   95          int i;
 108   96  
 109   97          for (i = 0; i < n; i++)
 110   98                  thread_create_intr(cp);
 111   99  
 112  100          cp->cpu_intr_stack = (caddr_t)segkp_get(segkp, INTR_STACK_SIZE,
 113      -                KPD_HASREDZONE | KPD_NO_ANON | KPD_LOCKED) +
 114      -                INTR_STACK_SIZE - SA(MINFRAME);
      101 +            KPD_HASREDZONE | KPD_NO_ANON | KPD_LOCKED) +
      102 +            INTR_STACK_SIZE - SA(MINFRAME);
 115  103  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX