Files
linuxkit/kernel/patches-4.14.x-rt/0224-stop_machine-Use-raw-spinlocks.patch
Tiejun Chen ef9302bc01 update -rt to 4.14.87-rt50
Signed-off-by: Tiejun Chen <tiejunc@vmware.com>
2019-01-14 20:49:28 -08:00

37 lines
1.0 KiB
Diff

From eff70631cf55bb22b788ac7446b8e9613fbe392a Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Wed, 29 Jun 2011 11:01:51 +0200
Subject: [PATCH 224/450] stop_machine: Use raw spinlocks
Use raw-locks in stomp_machine() to allow locking in irq-off regions.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
kernel/stop_machine.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c
index f8d1ae9ed7be..56f2f2e01229 100644
--- a/kernel/stop_machine.c
+++ b/kernel/stop_machine.c
@@ -503,15 +503,7 @@ static void cpu_stopper_thread(unsigned int cpu)
struct cpu_stop_done *done = work->done;
int ret;
- /*
- * Wait until the stopper finished scheduling on all
- * cpus
- */
- lg_global_lock(&stop_cpus_lock);
- /*
- * Let other cpu threads continue as well
- */
- lg_global_unlock(&stop_cpus_lock);
+ /* XXX */
/* cpu stop callbacks must not sleep, make in_atomic() == T */
preempt_count_inc();
--
2.19.2