]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
sched/rt, sparc: Use CONFIG_PREEMPTION
authorThomas Gleixner <tglx@linutronix.de>
Tue, 15 Oct 2019 19:18:06 +0000 (21:18 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 8 Dec 2019 13:37:35 +0000 (14:37 +0100)
CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT.
Both PREEMPT and PREEMPT_RT require the same functionality which today
depends on CONFIG_PREEMPT.

Switch the trap code over to use CONFIG_PREEMPTION.

[bigeasy: +Kconfig]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: sparclinux@vger.kernel.org
Link: https://lore.kernel.org/r/20191015191821.11479-20-bigeasy@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/sparc/Kconfig
arch/sparc/kernel/rtrap_64.S

index eb24cb1afc11fbcc044583c3277b55aca9234f71..e8c3ea01c12f6d5cf90e55eb1fc25d6f8e248427 100644 (file)
@@ -277,7 +277,7 @@ config US3_MC
 config GENERIC_LOCKBREAK
        bool
        default y
-       depends on SPARC64 && SMP && PREEMPT
+       depends on SPARC64 && SMP && PREEMPTION
 
 config NUMA
        bool "NUMA support"
index 29aa34f11720cea3e098372995f751298b09e641..c5fd4b450d9b631b694bfd706e1959acef1d91ba 100644 (file)
@@ -310,7 +310,7 @@ kern_rtt_restore:
                retry
 
 to_kernel:
-#ifdef CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPTION
                ldsw                    [%g6 + TI_PRE_COUNT], %l5
                brnz                    %l5, kern_fpucheck
                 ldx                    [%g6 + TI_FLAGS], %l5