summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/context_tracking.h
diff options
context:
space:
mode:
authorLi Zhong <zhong@linux.vnet.ibm.com>2013-05-13 16:16:43 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-05-14 16:00:20 +1000
commit5d1c57451154047ab31aadfbc712bb8aa174bfb3 (patch)
treea2a3e7c7aae755944b3898cd420e8396423762a6 /arch/powerpc/include/asm/context_tracking.h
parent106ed886abc46723c290e82e5f161d9b40820203 (diff)
downloadtalos-op-linux-5d1c57451154047ab31aadfbc712bb8aa174bfb3.tar.gz
talos-op-linux-5d1c57451154047ab31aadfbc712bb8aa174bfb3.zip
powerpc: Use the new schedule_user API on userspace preemption
This patch corresponds to [PATCH] x86: Use the new schedule_user API on userspace preemption commit 0430499ce9d78691f3985962021b16bf8f8a8048 Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/context_tracking.h')
-rw-r--r--arch/powerpc/include/asm/context_tracking.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/context_tracking.h b/arch/powerpc/include/asm/context_tracking.h
new file mode 100644
index 000000000000..b6f5a33b8ee2
--- /dev/null
+++ b/arch/powerpc/include/asm/context_tracking.h
@@ -0,0 +1,10 @@
+#ifndef _ASM_POWERPC_CONTEXT_TRACKING_H
+#define _ASM_POWERPC_CONTEXT_TRACKING_H
+
+#ifdef CONFIG_CONTEXT_TRACKING
+#define SCHEDULE_USER bl .schedule_user
+#else
+#define SCHEDULE_USER bl .schedule
+#endif
+
+#endif
OpenPOWER on IntegriCloud