Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/cpupart.h
          +++ new/usr/src/uts/common/sys/cpupart.h
↓ 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) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2017 RackTop Systems.
  23   24   */
  24   25  
  25   26  #ifndef _SYS_CPUPART_H
  26   27  #define _SYS_CPUPART_H
  27   28  
  28   29  #include <sys/types.h>
  29   30  #include <sys/processor.h>
  30   31  #include <sys/cpuvar.h>
  31   32  #include <sys/disp.h>
  32   33  #include <sys/pset.h>
  33   34  #include <sys/lgrp.h>
  34   35  #include <sys/lgrp_user.h>
  35   36  #include <sys/pg.h>
  36   37  #include <sys/bitset.h>
  37   38  #include <sys/time.h>
  38   39  
  39   40  #ifdef  __cplusplus
  40   41  extern "C" {
  41   42  #endif
  42   43  
  43      -#ifdef _KERNEL
       44 +#if defined(_KERNEL) || defined(_FAKE_KERNEL)
  44   45  
  45   46  typedef int     cpupartid_t;
  46   47  
  47   48  /*
  48   49   * Special partition id.
  49   50   */
  50   51  #define CP_DEFAULT      0
  51   52  
  52   53  /*
  53   54   * Flags for cpupart_list()
↓ open down ↓ 87 lines elided ↑ open up ↑
 141  142  extern int      cpupart_attach_cpu(psetid_t, cpu_t *, int);
 142  143  extern int      cpupart_get_cpus(psetid_t *, processorid_t *, uint_t *);
 143  144  extern int      cpupart_bind_thread(kthread_id_t, psetid_t, int, void *,
 144  145      void *);
 145  146  extern void     cpupart_kpqalloc(pri_t);
 146  147  extern int      cpupart_get_loadavg(psetid_t, int *, int);
 147  148  extern uint_t   cpupart_list(psetid_t *, uint_t, int);
 148  149  extern int      cpupart_setattr(psetid_t, uint_t);
 149  150  extern int      cpupart_getattr(psetid_t, uint_t *);
 150  151  
 151      -#endif  /* _KERNEL */
      152 +#endif  /* _KERNEL || _FAKE_KERNEL */
 152  153  
 153  154  #ifdef  __cplusplus
 154  155  }
 155  156  #endif
 156  157  
 157  158  #endif  /* _SYS_CPUPART_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX