aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5c51d7e5dcc1..238a76957e86 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1678,8 +1678,8 @@ void fastcall wake_up_new_task(struct task_struct *p, unsigned long clone_flags)
1678#ifdef CONFIG_PREEMPT_NOTIFIERS 1678#ifdef CONFIG_PREEMPT_NOTIFIERS
1679 1679
1680/** 1680/**
1681 * preempt_notifier_register - tell me when current is being being preempted 1681 * preempt_notifier_register - tell me when current is being being preempted & rescheduled
1682 * and rescheduled 1682 * @notifier: notifier struct to register
1683 */ 1683 */
1684void preempt_notifier_register(struct preempt_notifier *notifier) 1684void preempt_notifier_register(struct preempt_notifier *notifier)
1685{ 1685{
@@ -1689,6 +1689,7 @@ EXPORT_SYMBOL_GPL(preempt_notifier_register);
1689 1689
1690/** 1690/**
1691 * preempt_notifier_unregister - no longer interested in preemption notifications 1691 * preempt_notifier_unregister - no longer interested in preemption notifications
1692 * @notifier: notifier struct to unregister
1692 * 1693 *
1693 * This is safe to call from within a preemption notifier. 1694 * This is safe to call from within a preemption notifier.
1694 */ 1695 */
@@ -1735,6 +1736,7 @@ fire_sched_out_preempt_notifiers(struct task_struct *curr,
1735/** 1736/**
1736 * prepare_task_switch - prepare to switch tasks 1737 * prepare_task_switch - prepare to switch tasks
1737 * @rq: the runqueue preparing to switch 1738 * @rq: the runqueue preparing to switch
1739 * @prev: the current task that is being switched out
1738 * @next: the task we are going to switch to. 1740 * @next: the task we are going to switch to.
1739 * 1741 *
1740 * This is called with the rq lock held and interrupts off. It must 1742 * This is called with the rq lock held and interrupts off. It must