mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
drivers: fix up obsolete cpu function usage.
Thanks to spatch, plus manual removal of "&*". Then a sweep for for_each_cpu_mask => for_each_cpu. Signed-off-by: Rusty Russell <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Jason Cooper <[email protected]> Cc: Chris Metcalf <[email protected]> Cc: [email protected]
This commit is contained in:
parent
51f7bd8590
commit
f9b531fe14
6 changed files with 13 additions and 12 deletions
|
|
@ -292,7 +292,7 @@ static inline int cpuidle_coupled_get_state(struct cpuidle_device *dev,
|
|||
*/
|
||||
smp_rmb();
|
||||
|
||||
for_each_cpu_mask(i, coupled->coupled_cpus)
|
||||
for_each_cpu(i, &coupled->coupled_cpus)
|
||||
if (cpu_online(i) && coupled->requested_state[i] < state)
|
||||
state = coupled->requested_state[i];
|
||||
|
||||
|
|
@ -338,7 +338,7 @@ static void cpuidle_coupled_poke_others(int this_cpu,
|
|||
{
|
||||
int cpu;
|
||||
|
||||
for_each_cpu_mask(cpu, coupled->coupled_cpus)
|
||||
for_each_cpu(cpu, &coupled->coupled_cpus)
|
||||
if (cpu != this_cpu && cpu_online(cpu))
|
||||
cpuidle_coupled_poke(cpu);
|
||||
}
|
||||
|
|
@ -638,7 +638,7 @@ int cpuidle_coupled_register_device(struct cpuidle_device *dev)
|
|||
if (cpumask_empty(&dev->coupled_cpus))
|
||||
return 0;
|
||||
|
||||
for_each_cpu_mask(cpu, dev->coupled_cpus) {
|
||||
for_each_cpu(cpu, &dev->coupled_cpus) {
|
||||
other_dev = per_cpu(cpuidle_devices, cpu);
|
||||
if (other_dev && other_dev->coupled) {
|
||||
coupled = other_dev->coupled;
|
||||
|
|
|
|||
Loading…
Reference in a new issue