diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2006-06-27 11:54:31 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-28 02:32:44 +0200 |
commit | cc94abfcbc9fed0048365ce1fb8dc81353408bf8 (patch) | |
tree | d7e40f7a9e710f220f1bf5f7514ac7eba2fc70c2 | |
parent | [PATCH] sched: fix interactive ceiling code (diff) | |
download | linux-cc94abfcbc9fed0048365ce1fb8dc81353408bf8.tar.xz linux-cc94abfcbc9fed0048365ce1fb8dc81353408bf8.zip |
[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>
-rw-r--r-- | kernel/sched.c | 3 |
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) 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; |