aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 1cd4ee769e20..1fd67e16cd31 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4203,13 +4203,12 @@ static void __setscheduler(struct task_struct *p, int policy, int prio)
4203} 4203}
4204 4204
4205/** 4205/**
4206 * sched_setscheduler - change the scheduling policy and/or RT priority of 4206 * sched_setscheduler - change the scheduling policy and/or RT priority of a thread.
4207 * a thread.
4208 * @p: the task in question. 4207 * @p: the task in question.
4209 * @policy: new policy. 4208 * @policy: new policy.
4210 * @param: structure containing the new RT priority. 4209 * @param: structure containing the new RT priority.
4211 * 4210 *
4212 * NOTE: the task may be already dead 4211 * NOTE that the task may be already dead.
4213 */ 4212 */
4214int sched_setscheduler(struct task_struct *p, int policy, 4213int sched_setscheduler(struct task_struct *p, int policy,
4215 struct sched_param *param) 4214 struct sched_param *param)
@@ -4577,7 +4576,7 @@ asmlinkage long sys_sched_getaffinity(pid_t pid, unsigned int len,
4577/** 4576/**
4578 * sys_sched_yield - yield the current processor to other threads. 4577 * sys_sched_yield - yield the current processor to other threads.
4579 * 4578 *
4580 * this function yields the current CPU by moving the calling thread 4579 * This function yields the current CPU by moving the calling thread
4581 * to the expired array. If there are no other threads running on this 4580 * to the expired array. If there are no other threads running on this
4582 * CPU then this function will return. 4581 * CPU then this function will return.
4583 */ 4582 */
@@ -4704,7 +4703,7 @@ EXPORT_SYMBOL(cond_resched_softirq);
4704/** 4703/**
4705 * yield - yield the current processor to other threads. 4704 * yield - yield the current processor to other threads.
4706 * 4705 *
4707 * this is a shortcut for kernel-space yielding - it marks the 4706 * This is a shortcut for kernel-space yielding - it marks the
4708 * thread runnable and calls sys_sched_yield(). 4707 * thread runnable and calls sys_sched_yield().
4709 */ 4708 */
4710void __sched yield(void) 4709void __sched yield(void)