History

PM: sleep: s2idle: Replace deprecated CPU-hotplug functions

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.

Sebastian Andrzej Siewior committed 5 years ago

Commit d2c8cce1 parent c500bee1 file · +2 −2Browse files

Unified · Split

kernel/power/suspend.c+2−2
@@ -96,7 +96,7 @@ static void s2idle_enter(void) · 95 unmodified lines
9696 s2idle_state = S2IDLE_STATE_ENTER;
9797 raw_spin_unlock_irq(&s2idle_lock);
9898
99− get_online_cpus();
99+ cpus_read_lock();
100100 cpuidle_resume();
101101
102102 /* Push all the CPUs into the idle loop. */
@@ -106,7 +106,7 @@ static void s2idle_enter(void) · 3 unmodified lines
106106 s2idle_state == S2IDLE_STATE_WAKE);
107107
108108 cpuidle_pause();
109− put_online_cpus();
109+ cpus_read_unlock();
110110
111111 raw_spin_lock_irq(&s2idle_lock);
112112

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t