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

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/power/suspend.c+2−2
@@ -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

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