Commit cc94abfc authored by Steven Rostedt's avatar Steven Rostedt Committed by Linus Torvalds

[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: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 72d2854d
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment