Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/cyclic.h
          +++ new/usr/src/uts/common/sys/cyclic.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  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 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2017 RackTop Systems.
  24   26   */
  25   27  
  26   28  #ifndef _SYS_CYCLIC_H
  27   29  #define _SYS_CYCLIC_H
  28   30  
  29   31  #ifdef  __cplusplus
  30   32  extern "C" {
  31   33  #endif
  32   34  
  33   35  #ifndef _ASM
↓ open down ↓ 31 lines elided ↑ open up ↑
  65   67  } cyc_time_t;
  66   68  
  67   69  typedef struct cyc_omni_handler {
  68   70          void (*cyo_online)(void *, cpu_t *, cyc_handler_t *, cyc_time_t *);
  69   71          void (*cyo_offline)(void *, cpu_t *, void *);
  70   72          void *cyo_arg;
  71   73  } cyc_omni_handler_t;
  72   74  
  73   75  #define CY_INFINITY     INT64_MAX
  74   76  
  75      -#ifdef _KERNEL
       77 +#if defined(_KERNEL) || defined(_FAKE_KERNEL)
  76   78  
  77   79  extern cyclic_id_t cyclic_add(cyc_handler_t *, cyc_time_t *);
  78   80  extern cyclic_id_t cyclic_add_omni(cyc_omni_handler_t *);
  79   81  extern void cyclic_remove(cyclic_id_t);
  80   82  extern void cyclic_bind(cyclic_id_t, cpu_t *, cpupart_t *);
  81   83  extern int cyclic_reprogram(cyclic_id_t, hrtime_t);
  82   84  extern hrtime_t cyclic_getres();
  83   85  
  84   86  extern int cyclic_offline(cpu_t *cpu);
  85   87  extern void cyclic_online(cpu_t *cpu);
  86   88  extern int cyclic_juggle(cpu_t *cpu);
  87   89  extern void cyclic_move_in(cpu_t *);
  88   90  extern int cyclic_move_out(cpu_t *);
  89   91  extern void cyclic_suspend();
  90   92  extern void cyclic_resume();
  91   93  
  92   94  extern void cyclic_fire(cpu_t *cpu);
  93   95  extern void cyclic_softint(cpu_t *cpu, cyc_level_t level);
  94   96  
  95      -#endif /* _KERNEL */
       97 +#endif /* _KERNEL || _FAKE_KERNEL */
  96   98  
  97   99  #endif /* !_ASM */
  98  100  
  99  101  #ifdef  __cplusplus
 100  102  }
 101  103  #endif
 102  104  
 103  105  #endif /* _SYS_CYCLIC_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX