Print this page
8115 parallel zfs mount

*** 21,39 **** --- 21,41 ---- /* * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012 by Delphix. All rights reserved. * Copyright 2014 Igor Kozhukhov <ikozhukhov@gmail.com>. + * Copyright 2017 RackTop Systems. */ #ifndef _SYS_CPUVAR_H #define _SYS_CPUVAR_H #include <sys/thread.h> #include <sys/sysinfo.h> /* has cpu_stat_t definition */ #include <sys/disp.h> #include <sys/processor.h> + #include <sys/kcpc.h> /* has kcpc_ctx_t definition */ #include <sys/loadavg.h> #if (defined(_KERNEL) || defined(_KMEMUSER)) && defined(_MACHDEP) #include <sys/machcpuvar.h> #endif
*** 612,624 **** #define CPU_NEW_GENERATION(cp) ((cp)->cpu_generation++) #endif /* _KERNEL || _KMEMUSER */ /* ! * CPU support routines. */ ! #if defined(_KERNEL) && defined(__STDC__) /* not for genassym.c */ struct zone; void cpu_list_init(cpu_t *); void cpu_add_unit(cpu_t *); --- 614,626 ---- #define CPU_NEW_GENERATION(cp) ((cp)->cpu_generation++) #endif /* _KERNEL || _KMEMUSER */ /* ! * CPU support routines (not for genassym.c) */ ! #if defined(_KERNEL) || defined(_FAKE_KERNEL) && defined(__STDC__) struct zone; void cpu_list_init(cpu_t *); void cpu_add_unit(cpu_t *);
*** 821,831 **** extern void init_cpu_info(struct cpu *); extern void populate_idstr(struct cpu *); extern void cpu_vm_data_init(struct cpu *); extern void cpu_vm_data_destroy(struct cpu *); ! #endif /* _KERNEL */ #ifdef __cplusplus } #endif --- 823,833 ---- extern void init_cpu_info(struct cpu *); extern void populate_idstr(struct cpu *); extern void cpu_vm_data_init(struct cpu *); extern void cpu_vm_data_destroy(struct cpu *); ! #endif /* _KERNEL || _FAKE_KERNEL */ #ifdef __cplusplus } #endif