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.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -96,7 +96,7 @@ static void s2idle_enter(void) · 95 unmodified lines | ||
| 96 | 96 | s2idle_state = S2IDLE_STATE_ENTER; |
| 97 | 97 | raw_spin_unlock_irq(&s2idle_lock); |
| 98 | 98 | |
| 99 | − get_online_cpus(); | |
| 99 | + cpus_read_lock(); | |
| 100 | 100 | cpuidle_resume(); |
| 101 | 101 | |
| 102 | 102 | /* Push all the CPUs into the idle loop. */ |
| @@ -106,7 +106,7 @@ static void s2idle_enter(void) · 3 unmodified lines | ||
| 106 | 106 | s2idle_state == S2IDLE_STATE_WAKE); |
| 107 | 107 | |
| 108 | 108 | cpuidle_pause(); |
| 109 | − put_online_cpus(); | |
| 109 | + cpus_read_unlock(); | |
| 110 | 110 | |
| 111 | 111 | raw_spin_lock_irq(&s2idle_lock); |
| 112 | 112 | |