The refactored function is no longer required as the codepaths that call freeze_secondary_cpus() are all suspend/resume related now.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -144,12 +144,7 @@ static inline void get_online_cpus(void) { cpus_read_lock(); } · 143 unmodified lines | |||
| 144 | static inline void put_online_cpus(void) { cpus_read_unlock(); } | 144 | static inline void put_online_cpus(void) { cpus_read_unlock(); } |
| 145 | 145 | ||
| 146 | #ifdef CONFIG_PM_SLEEP_SMP | 146 | #ifdef CONFIG_PM_SLEEP_SMP |
| 147 | int __freeze_secondary_cpus(int primary, bool suspend); | 147 | extern int freeze_secondary_cpus(int primary); |
| 148 | static inline int freeze_secondary_cpus(int primary) | ||
| 149 | { | ||
| 150 | return __freeze_secondary_cpus(primary, true); | ||
| 151 | } | ||
| 152 | |||
| 153 | extern void thaw_secondary_cpus(void); | 148 | extern void thaw_secondary_cpus(void); |
| 154 | 149 | ||
| 155 | static inline int suspend_disable_secondary_cpus(void) | 150 | static inline int suspend_disable_secondary_cpus(void) |