diff options
Diffstat (limited to 'debian/patches-rt/0115-hotplug-Lightweight-get-online-cpus.patch')
-rw-r--r-- | debian/patches-rt/0115-hotplug-Lightweight-get-online-cpus.patch | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/debian/patches-rt/0115-hotplug-Lightweight-get-online-cpus.patch b/debian/patches-rt/0115-hotplug-Lightweight-get-online-cpus.patch index 5561bbcf7..dce52eae4 100644 --- a/debian/patches-rt/0115-hotplug-Lightweight-get-online-cpus.patch +++ b/debian/patches-rt/0115-hotplug-Lightweight-get-online-cpus.patch @@ -1,8 +1,7 @@ -From bf07bc52ad387c3cec5179aac1a8a08bfe0e24f7 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner <tglx@linutronix.de> Date: Wed, 15 Jun 2011 12:36:06 +0200 -Subject: [PATCH 115/347] hotplug: Lightweight get online cpus -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.246-rt110.tar.xz +Subject: [PATCH 115/342] hotplug: Lightweight get online cpus +Origin: https://git.kernel.org/cgit/linux/kernel/git/rt/linux-stable-rt.git/commit?id=9830fd079687f2127d5cfc53c16f8d4d0e1cfb19 get_online_cpus() is a heavy weight function which involves a global mutex. migrate_disable() wants a simpler construct which prevents only @@ -20,10 +19,10 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de> 3 files changed, 24 insertions(+) diff --git a/include/linux/cpu.h b/include/linux/cpu.h -index aab4273810e3..e67645924404 100644 +index 8cc06e1d4fc2..a3c246214d28 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h -@@ -118,6 +118,8 @@ extern void cpu_hotplug_disable(void); +@@ -122,6 +122,8 @@ extern void cpu_hotplug_disable(void); extern void cpu_hotplug_enable(void); void clear_tasks_mm_cpumask(int cpu); int cpu_down(unsigned int cpu); @@ -32,7 +31,7 @@ index aab4273810e3..e67645924404 100644 #else /* CONFIG_HOTPLUG_CPU */ -@@ -129,6 +131,9 @@ static inline int cpus_read_trylock(void) { return true; } +@@ -133,6 +135,9 @@ static inline int cpus_read_trylock(void) { return true; } static inline void lockdep_assert_cpus_held(void) { } static inline void cpu_hotplug_disable(void) { } static inline void cpu_hotplug_enable(void) { } @@ -43,10 +42,10 @@ index aab4273810e3..e67645924404 100644 /* Wrappers which go away once all code is converted */ diff --git a/kernel/cpu.c b/kernel/cpu.c -index d6fd362afc81..89a96cc14b39 100644 +index c9ca190ec034..f4c49bbc3fa3 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c -@@ -283,6 +283,21 @@ static int cpu_hotplug_disabled; +@@ -284,6 +284,21 @@ static int cpu_hotplug_disabled; #ifdef CONFIG_HOTPLUG_CPU @@ -96,6 +95,3 @@ index ba6f445ac9e8..ed79f921a84e 100644 preempt_enable(); } EXPORT_SYMBOL(migrate_enable); --- -2.36.1 - |