]> granicus.if.org Git - zfs/commitdiff
Add 3 missing typedefs.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 May 2010 16:42:53 +0000 (09:42 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 May 2010 16:42:53 +0000 (09:42 -0700)
Add processorid_t, pc_t, index_t.

include/sys/processor.h [new file with mode: 0644]
include/sys/systm.h
include/sys/types.h

diff --git a/include/sys/processor.h b/include/sys/processor.h
new file mode 100644 (file)
index 0000000..6528586
--- /dev/null
@@ -0,0 +1,8 @@
+#ifndef        _SPL_PROCESSOR_H
+#define        _SPL_PROCESSOR_H
+
+#define getcpuid() smp_processor_id()
+
+typedef int    processorid_t;
+
+#endif /* _SPL_PROCESSOR_H */
index 1fb367a9b55170453254dbe3af2d978746d0e5a1..68bd9badfc5126cd6c3a90afdcee11e720646714 100644 (file)
@@ -3,4 +3,6 @@
 
 #include <sys/sunddi.h>
 
+typedef uintptr_t pc_t;
+
 #endif /* SPL_SYSTM_H */
index 771e8f36e32d88ea3832362fcec1364accd55227..2804974ddb92179467f8741ee94c71b5c124f882 100644 (file)
@@ -57,5 +57,6 @@ typedef uint_t                                minor_t;
 typedef ulong_t                                pfn_t;
 typedef ulong_t                                pgcnt_t;
 typedef long                           spgcnt_t;
+typedef short                          index_t;
 
 #endif /* _SPL_TYPES_H */