mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] for_each_possible_cpu: fixes for generic part
replaces for_each_cpu with for_each_possible_cpu(). Signed-off-by: KAMEZAWA Hiroyuki <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
631d6747e1
commit
0a94502277
11 changed files with 17 additions and 17 deletions
|
|
@ -1625,7 +1625,7 @@ unsigned long nr_uninterruptible(void)
|
|||
{
|
||||
unsigned long i, sum = 0;
|
||||
|
||||
for_each_cpu(i)
|
||||
for_each_possible_cpu(i)
|
||||
sum += cpu_rq(i)->nr_uninterruptible;
|
||||
|
||||
/*
|
||||
|
|
@ -1642,7 +1642,7 @@ unsigned long long nr_context_switches(void)
|
|||
{
|
||||
unsigned long long i, sum = 0;
|
||||
|
||||
for_each_cpu(i)
|
||||
for_each_possible_cpu(i)
|
||||
sum += cpu_rq(i)->nr_switches;
|
||||
|
||||
return sum;
|
||||
|
|
@ -1652,7 +1652,7 @@ unsigned long nr_iowait(void)
|
|||
{
|
||||
unsigned long i, sum = 0;
|
||||
|
||||
for_each_cpu(i)
|
||||
for_each_possible_cpu(i)
|
||||
sum += atomic_read(&cpu_rq(i)->nr_iowait);
|
||||
|
||||
return sum;
|
||||
|
|
@ -6080,7 +6080,7 @@ void __init sched_init(void)
|
|||
runqueue_t *rq;
|
||||
int i, j, k;
|
||||
|
||||
for_each_cpu(i) {
|
||||
for_each_possible_cpu(i) {
|
||||
prio_array_t *array;
|
||||
|
||||
rq = cpu_rq(i);
|
||||
|
|
|
|||
Loading…
Reference in a new issue