aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2013-07-11 13:42:13 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2013-08-14 11:14:47 -0400
commit73d424f9af7b571276e6284617cb59726d47bf12 (patch)
tree6ee47dd0327e67c8514ebfefc12728b030e79ae5 /kernel
parent48d6a816a8bf36e2a197c322697323003bdc1cfe (diff)
context_tracking: Optimize context switch off case with static keys
No need for syscall slowpath if no CPU is full dynticks, rather nop this in this case. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Li Zhong <zhong@linux.vnet.ibm.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Kevin Hilman <khilman@linaro.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/context_tracking.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c
index b6a186c4b886..c17822673c39 100644
--- a/kernel/context_tracking.c
+++ b/kernel/context_tracking.c
@@ -166,7 +166,7 @@ void context_tracking_user_exit(void)
166} 166}
167 167
168/** 168/**
169 * context_tracking_task_switch - context switch the syscall callbacks 169 * __context_tracking_task_switch - context switch the syscall callbacks
170 * @prev: the task that is being switched out 170 * @prev: the task that is being switched out
171 * @next: the task that is being switched in 171 * @next: the task that is being switched in
172 * 172 *
@@ -178,8 +178,8 @@ void context_tracking_user_exit(void)
178 * migrate to some CPU that doesn't do the context tracking. As such the TIF 178 * migrate to some CPU that doesn't do the context tracking. As such the TIF
179 * flag may not be desired there. 179 * flag may not be desired there.
180 */ 180 */
181void context_tracking_task_switch(struct task_struct *prev, 181void __context_tracking_task_switch(struct task_struct *prev,
182 struct task_struct *next) 182 struct task_struct *next)
183{ 183{
184 clear_tsk_thread_flag(prev, TIF_NOHZ); 184 clear_tsk_thread_flag(prev, TIF_NOHZ);
185 set_tsk_thread_flag(next, TIF_NOHZ); 185 set_tsk_thread_flag(next, TIF_NOHZ);