From: Steven Rostedt Date: Tue, 27 Jun 2006 09:54:31 +0000 (-0700) Subject: [PATCH] unnecessary long index i in sched X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cc94abfcbc9fed0048365ce1fb8dc81353408bf8;p=linux-beck.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) unsigned long long nr_context_switches(void) { - unsigned long long i, sum = 0; + int i; + unsigned long long sum = 0; for_each_possible_cpu(i) sum += cpu_rq(i)->nr_switches;