Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / include / linux / personality.h
diff --git a/kernel/include/linux/personality.h b/kernel/include/linux/personality.h
new file mode 100644 (file)
index 0000000..aeb7892
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef _LINUX_PERSONALITY_H
+#define _LINUX_PERSONALITY_H
+
+#include <uapi/linux/personality.h>
+
+/*
+ * Return the base personality without flags.
+ */
+#define personality(pers)      (pers & PER_MASK)
+
+/*
+ * Change personality of the currently running process.
+ */
+#define set_personality(pers)  (current->personality = (pers))
+
+#endif /* _LINUX_PERSONALITY_H */