aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index d9c0368eeb21..15b93f617fd7 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -969,14 +969,6 @@ static struct rq *task_rq_lock(struct task_struct *p, unsigned long *flags)
969 } 969 }
970} 970}
971 971
972void task_rq_unlock_wait(struct task_struct *p)
973{
974 struct rq *rq = task_rq(p);
975
976 smp_mb(); /* spin-unlock-wait is not a full memory barrier */
977 raw_spin_unlock_wait(&rq->lock);
978}
979
980static void __task_rq_unlock(struct rq *rq) 972static void __task_rq_unlock(struct rq *rq)
981 __releases(rq->lock) 973 __releases(rq->lock)
982{ 974{
@@ -7759,9 +7751,9 @@ void normalize_rt_tasks(void)
7759 7751
7760#endif /* CONFIG_MAGIC_SYSRQ */ 7752#endif /* CONFIG_MAGIC_SYSRQ */
7761 7753
7762#ifdef CONFIG_IA64 7754#if defined(CONFIG_IA64) || defined(CONFIG_KGDB_KDB)
7763/* 7755/*
7764 * These functions are only useful for the IA64 MCA handling. 7756 * These functions are only useful for the IA64 MCA handling, or kdb.
7765 * 7757 *
7766 * They can only be called when the whole system has been 7758 * They can only be called when the whole system has been
7767 * stopped - every CPU needs to be quiescent, and no scheduling 7759 * stopped - every CPU needs to be quiescent, and no scheduling
@@ -7781,6 +7773,9 @@ struct task_struct *curr_task(int cpu)
7781 return cpu_curr(cpu); 7773 return cpu_curr(cpu);
7782} 7774}
7783 7775
7776#endif /* defined(CONFIG_IA64) || defined(CONFIG_KGDB_KDB) */
7777
7778#ifdef CONFIG_IA64
7784/** 7779/**
7785 * set_curr_task - set the current task for a given cpu. 7780 * set_curr_task - set the current task for a given cpu.
7786 * @cpu: the processor in question. 7781 * @cpu: the processor in question.