aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2006-06-27 05:54:31 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-27 20:32:44 -0400
commitcc94abfcbc9fed0048365ce1fb8dc81353408bf8 (patch)
treed7e40f7a9e710f220f1bf5f7514ac7eba2fc70c2 /kernel/sched.c
parent72d2854d4ebf5faf086ebccb2ed575c6b68a05dc (diff)
[PATCH] unnecessary long index i in sched
Unless we expect to have more than 2G CPUs, there's no reason to have 'i' as a long long here. Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index cb146219d532..235c421631d6 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1653,7 +1653,8 @@ unsigned long nr_uninterruptible(void)
1653 1653
1654unsigned long long nr_context_switches(void) 1654unsigned long long nr_context_switches(void)
1655{ 1655{
1656 unsigned long long i, sum = 0; 1656 int i;
1657 unsigned long long sum = 0;
1657 1658
1658 for_each_possible_cpu(i) 1659 for_each_possible_cpu(i)
1659 sum += cpu_rq(i)->nr_switches; 1660 sum += cpu_rq(i)->nr_switches;