summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSha Zhengju <handai.szj@taobao.com>2013-02-20 17:14:38 +0800
committerIngo Molnar <mingo@kernel.org>2013-02-20 11:39:24 +0100
commit1c3e826482ab698e418c7a894440e62c76aac893 (patch)
tree308b6ec83faaf1185c937ef4d2a5387bef00ff99 /kernel
parentece8e0b2f9c980e5511fe8db2d68c6f1859b9d83 (diff)
downloadtalos-op-linux-1c3e826482ab698e418c7a894440e62c76aac893.tar.gz
talos-op-linux-1c3e826482ab698e418c7a894440e62c76aac893.zip
sched/core: Remove the obsolete and unused nr_uninterruptible() function
Signed-off-by: Sha Zhengju <handai.szj@taobao.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1361351678-8065-1-git-send-email-handai.szj@taobao.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/core.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 03d7784b7bd2..b7b03cd2d4cd 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -1969,11 +1969,10 @@ context_switch(struct rq *rq, struct task_struct *prev,
}
/*
- * nr_running, nr_uninterruptible and nr_context_switches:
+ * nr_running and nr_context_switches:
*
* externally visible scheduler statistics: current number of runnable
- * threads, current number of uninterruptible-sleeping threads, total
- * number of context switches performed since bootup.
+ * threads, total number of context switches performed since bootup.
*/
unsigned long nr_running(void)
{
@@ -1985,23 +1984,6 @@ unsigned long nr_running(void)
return sum;
}
-unsigned long nr_uninterruptible(void)
-{
- unsigned long i, sum = 0;
-
- for_each_possible_cpu(i)
- sum += cpu_rq(i)->nr_uninterruptible;
-
- /*
- * Since we read the counters lockless, it might be slightly
- * inaccurate. Do not allow it to go below zero though:
- */
- if (unlikely((long)sum < 0))
- sum = 0;
-
- return sum;
-}
-
unsigned long long nr_context_switches(void)
{
int i;
OpenPOWER on IntegriCloud