Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/cpuvar.h
          +++ new/usr/src/uts/common/sys/cpuvar.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright (c) 2012 by Delphix. All rights reserved.
  25   25   * Copyright 2014 Igor Kozhukhov <ikozhukhov@gmail.com>.
       26 + * Copyright 2017 RackTop Systems.
  26   27   */
  27   28  
  28   29  #ifndef _SYS_CPUVAR_H
  29   30  #define _SYS_CPUVAR_H
  30   31  
  31   32  #include <sys/thread.h>
  32   33  #include <sys/sysinfo.h>        /* has cpu_stat_t definition */
  33   34  #include <sys/disp.h>
  34   35  #include <sys/processor.h>
       36 +#include <sys/kcpc.h>           /* has kcpc_ctx_t definition */
  35   37  
  36   38  #include <sys/loadavg.h>
  37   39  #if (defined(_KERNEL) || defined(_KMEMUSER)) && defined(_MACHDEP)
  38   40  #include <sys/machcpuvar.h>
  39   41  #endif
  40   42  
  41   43  #include <sys/types.h>
  42   44  #include <sys/file.h>
  43   45  #include <sys/bitmap.h>
  44   46  #include <sys/rwlock.h>
↓ open down ↓ 562 lines elided ↑ open up ↑
 607  609  /*
 608  610   * Increment CPU generation value.
 609  611   * This macro should be called whenever CPU goes on-line or off-line.
 610  612   * Updates to cpu_generation should be protected by cpu_lock.
 611  613   */
 612  614  #define CPU_NEW_GENERATION(cp)  ((cp)->cpu_generation++)
 613  615  
 614  616  #endif /* _KERNEL || _KMEMUSER */
 615  617  
 616  618  /*
 617      - * CPU support routines.
      619 + * CPU support routines (not for genassym.c)
 618  620   */
 619      -#if     defined(_KERNEL) && defined(__STDC__)   /* not for genassym.c */
      621 +#if     defined(_KERNEL) || defined(_FAKE_KERNEL) && defined(__STDC__)
 620  622  
 621  623  struct zone;
 622  624  
 623  625  void    cpu_list_init(cpu_t *);
 624  626  void    cpu_add_unit(cpu_t *);
 625  627  void    cpu_del_unit(int cpuid);
 626  628  void    cpu_add_active(cpu_t *);
 627  629  void    cpu_kstat_init(cpu_t *);
 628  630  void    cpu_visibility_add(cpu_t *, struct zone *);
 629  631  void    cpu_visibility_remove(cpu_t *, struct zone *);
↓ open down ↓ 186 lines elided ↑ open up ↑
 816  818   * Create various strings that describe the given CPU for the
 817  819   * processor_info system call and configuration-related kstats.
 818  820   */
 819  821  #define CPU_IDSTRLEN    100
 820  822  
 821  823  extern void init_cpu_info(struct cpu *);
 822  824  extern void populate_idstr(struct cpu *);
 823  825  extern void cpu_vm_data_init(struct cpu *);
 824  826  extern void cpu_vm_data_destroy(struct cpu *);
 825  827  
 826      -#endif  /* _KERNEL */
      828 +#endif  /* _KERNEL || _FAKE_KERNEL */
 827  829  
 828  830  #ifdef  __cplusplus
 829  831  }
 830  832  #endif
 831  833  
 832  834  #endif /* _SYS_CPUVAR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX