Skip to content

Commit

Permalink
[PATCH] unnecessary long index i in sched
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Linus Torvalds committed Jun 28, 2006
1 parent 72d2854 commit cc94abf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cc94abf

Please sign in to comment.