Print this page
8115 parallel zfs mount

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2017 RackTop Systems.
  */
 
 #ifndef _SYS_CPUPART_H
 #define _SYS_CPUPART_H
 

@@ -38,11 +39,11 @@
 
 #ifdef  __cplusplus
 extern "C" {
 #endif
 
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_FAKE_KERNEL)
 
 typedef int     cpupartid_t;
 
 /*
  * Special partition id.

@@ -146,11 +147,11 @@
 extern int      cpupart_get_loadavg(psetid_t, int *, int);
 extern uint_t   cpupart_list(psetid_t *, uint_t, int);
 extern int      cpupart_setattr(psetid_t, uint_t);
 extern int      cpupart_getattr(psetid_t, uint_t *);
 
-#endif  /* _KERNEL */
+#endif  /* _KERNEL || _FAKE_KERNEL */
 
 #ifdef  __cplusplus
 }
 #endif