The functions get_online_cpus() and put_online_cpus() have been deprecated during the CPU hotplug rework. They map directly to cpus_read_lock() and cpus_read_unlock(). Replace deprecated CPU-hotplug functions with the official version. The behavior remains unchanged.
Unified · Split
| @@ -96,7 +96,7 @@ static void s2idle_enter(void) · 95 unmodified lines | |||
| 96 | s2idle_state = S2IDLE_STATE_ENTER; | 96 | s2idle_state = S2IDLE_STATE_ENTER; |
| 97 | raw_spin_unlock_irq(&s2idle_lock); | 97 | raw_spin_unlock_irq(&s2idle_lock); |
| 98 | 98 | ||
| 99 | get_online_cpus(); | 99 | cpus_read_lock(); |
| 100 | cpuidle_resume(); | 100 | cpuidle_resume(); |
| 101 | 101 | ||
| 102 | /* Push all the CPUs into the idle loop. */ | 102 | /* Push all the CPUs into the idle loop. */ |
| @@ -106,7 +106,7 @@ static void s2idle_enter(void) · 3 unmodified lines | |||
| 106 | s2idle_state == S2IDLE_STATE_WAKE); | 106 | s2idle_state == S2IDLE_STATE_WAKE); |
| 107 | 107 | ||
| 108 | cpuidle_pause(); | 108 | cpuidle_pause(); |
| 109 | put_online_cpus(); | 109 | cpus_read_unlock(); |
| 110 | 110 | ||
| 111 | raw_spin_lock_irq(&s2idle_lock); | 111 | raw_spin_lock_irq(&s2idle_lock); |
| 112 | 112 | ||