summaryrefslogtreecommitdiff
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-04-20 18:38:21 (GMT)
committerIngo Molnar <mingo@elte.hu>2009-04-20 18:38:21 (GMT)
commitf1f9b3b1795da8625e0e6096813c9d18d4a344ce (patch)
tree5b5b8a9bc5e8b92962708282484a01d86a2027e2 /kernel/sched.c
parent125e702b09a28a502e145fb434678ee27720fc48 (diff)
downloadlinux-fsl-qoriq-f1f9b3b1795da8625e0e6096813c9d18d4a344ce.tar.xz
perfcounters, sched: remove __task_delta_exec()
This function was left orphan by the latest round of sw-counter cleanups. [ Impact: remove unused kernel function ] Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index b66a08c..a69278e 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4550,29 +4550,6 @@ EXPORT_PER_CPU_SYMBOL(kstat);
* Return any ns on the sched_clock that have not yet been banked in
* @p in case that task is currently running.
*/
-unsigned long long __task_delta_exec(struct task_struct *p, int update)
-{
- s64 delta_exec;
- struct rq *rq;
-
- rq = task_rq(p);
- WARN_ON_ONCE(!runqueue_is_locked());
- WARN_ON_ONCE(!task_current(rq, p));
-
- if (update)
- update_rq_clock(rq);
-
- delta_exec = rq->clock - p->se.exec_start;
-
- WARN_ON_ONCE(delta_exec < 0);
-
- return delta_exec;
-}
-
-/*
- * Return any ns on the sched_clock that have not yet been banked in
- * @p in case that task is currently running.
- */
unsigned long long task_delta_exec(struct task_struct *p)
{
unsigned long flags;