mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched/core: remove obsolete nr_uninterruptible()
@ 2013-02-20  7:37 Sha Zhengju
  2013-02-20  8:21 ` [PATCH V2] " Sha Zhengju
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sha Zhengju @ 2013-02-20  7:37 UTC (permalink / raw)
  To: linux-kernel, mingo; +Cc: Sha Zhengju

From: Sha Zhengju <handai.szj@taobao.com>

Signed-off-by: Sha Zhengju <handai.szj@taobao.com>
---
 kernel/sched/core.c |   17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index c0b07c3..792f6fc 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -1957,23 +1957,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;
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-20 14:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-20  7:37 [PATCH] sched/core: remove obsolete nr_uninterruptible() Sha Zhengju
2013-02-20  8:21 ` [PATCH V2] " Sha Zhengju
2013-02-20  8:31 ` [PATCH] " Xiaotian Feng
2013-02-20  9:05   ` Sha Zhengju
2013-02-20  9:14 ` [PATCH V3] " Sha Zhengju
2013-02-20 14:00   ` [tip:sched/urgent] sched/core: Remove the obsolete and unused nr_uninterruptible() function tip-bot for Sha Zhengju

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome