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 | 144 | static inline void put_online_cpus(void) { cpus_read_unlock(); } |
| 145 | 145 | |
| 146 | 146 | #ifdef CONFIG_PM_SLEEP_SMP |
| 147 | −int __freeze_secondary_cpus(int primary, bool suspend); | |
| 148 | −static inline int freeze_secondary_cpus(int primary) | |
| 149 | −{ | |
| 150 | − return __freeze_secondary_cpus(primary, true); | |
| 151 | −} | |
| 152 | − | |
| 147 | +extern int freeze_secondary_cpus(int primary); | |
| 153 | 148 | extern void thaw_secondary_cpus(void); |
| 154 | 149 | |
| 155 | 150 | static inline int suspend_disable_secondary_cpus(void) |