mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-24 15:24:03 +00:00
[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>
This commit is contained in:
parent
72d2854d4e
commit
cc94abfcbc
1 changed files with 2 additions and 1 deletions
|
@ -1653,7 +1653,8 @@ unsigned long nr_uninterruptible(void)
|
||||||
|
|
||||||
unsigned long long nr_context_switches(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)
|
for_each_possible_cpu(i)
|
||||||
sum += cpu_rq(i)->nr_switches;
|
sum += cpu_rq(i)->nr_switches;
|
||||||
|
|
Loading…
Add table
Reference in a new issue