summaryrefslogtreecommitdiffstats
path: root/include/linux/cpu.h
diff options
context:
space:
mode:
authorQais Yousef <qais.yousef@arm.com>2020-04-30 12:40:04 +0100
committerThomas Gleixner <tglx@linutronix.de>2020-05-07 15:18:41 +0200
commitfb7fb84a0c4e8021ddecb157802d58241a3f1a40 (patch)
treea6680c794e0f6cd7adc354d492411d8a28ea6c4a /include/linux/cpu.h
parent565558558985b1d7cd43b21f18c1ad6b232788d0 (diff)
downloadlinux-fb7fb84a0c4e8021ddecb157802d58241a3f1a40.tar.gz
linux-fb7fb84a0c4e8021ddecb157802d58241a3f1a40.tar.bz2
linux-fb7fb84a0c4e8021ddecb157802d58241a3f1a40.zip
cpu/hotplug: Remove __freeze_secondary_cpus()
The refactored function is no longer required as the codepaths that call freeze_secondary_cpus() are all suspend/resume related now. Signed-off-by: Qais Yousef <qais.yousef@arm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Link: https://lkml.kernel.org/r/20200430114004.17477-2-qais.yousef@arm.com
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r--include/linux/cpu.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index 9d34dc3b859f..52692587f7fe 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -144,12 +144,7 @@ static inline void get_online_cpus(void) { cpus_read_lock(); }
static inline void put_online_cpus(void) { cpus_read_unlock(); }
#ifdef CONFIG_PM_SLEEP_SMP
-int __freeze_secondary_cpus(int primary, bool suspend);
-static inline int freeze_secondary_cpus(int primary)
-{
- return __freeze_secondary_cpus(primary, true);
-}
-
+extern int freeze_secondary_cpus(int primary);
extern void thaw_secondary_cpus(void);
static inline int suspend_disable_secondary_cpus(void)