diff options
Diffstat (limited to '')
-rw-r--r-- | debian/patches-rt/0115-hotplug-Lightweight-get-online-cpus.patch | 16 |
1 files changed, 8 insertions, 8 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 594e332d9..b4b5e28b1 100644 --- a/debian/patches-rt/0115-hotplug-Lightweight-get-online-cpus.patch +++ b/debian/patches-rt/0115-hotplug-Lightweight-get-online-cpus.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner <tglx@linutronix.de> Date: Wed, 15 Jun 2011 12:36:06 +0200 -Subject: [PATCH 115/351] hotplug: Lightweight get online cpus -Origin: https://git.kernel.org/cgit/linux/kernel/git/rt/linux-stable-rt.git/commit?id=e035a899f179507ef0a952663aaa96e83989be51 +Subject: [PATCH 115/353] hotplug: Lightweight get online cpus +Origin: https://git.kernel.org/cgit/linux/kernel/git/rt/linux-stable-rt.git/commit?id=359ee8bad3d184681c5f7f7fc89bb3cba2feccae get_online_cpus() is a heavy weight function which involves a global mutex. migrate_disable() wants a simpler construct which prevents only @@ -19,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 8cc06e1d4fc2..a3c246214d28 100644 +index 12ed4cb751de..bddccdcd00ba 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h -@@ -122,6 +122,8 @@ extern void cpu_hotplug_disable(void); +@@ -124,6 +124,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); @@ -31,7 +31,7 @@ index 8cc06e1d4fc2..a3c246214d28 100644 #else /* CONFIG_HOTPLUG_CPU */ -@@ -133,6 +135,9 @@ static inline int cpus_read_trylock(void) { return true; } +@@ -135,6 +137,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) { } @@ -68,10 +68,10 @@ index c9ca190ec034..f4c49bbc3fa3 100644 void cpus_read_lock(void) diff --git a/kernel/sched/core.c b/kernel/sched/core.c -index 7b4752fa34d1..b1771f3de84a 100644 +index 3c1f897b8b70..be29571fa5dc 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c -@@ -7244,6 +7244,7 @@ void migrate_disable(void) +@@ -7246,6 +7246,7 @@ void migrate_disable(void) } preempt_disable(); @@ -79,7 +79,7 @@ index 7b4752fa34d1..b1771f3de84a 100644 migrate_disable_update_cpus_allowed(p); p->migrate_disable = 1; -@@ -7309,12 +7310,15 @@ void migrate_enable(void) +@@ -7311,12 +7312,15 @@ void migrate_enable(void) arg.task = p; arg.dest_cpu = dest_cpu; |