Skip to content

Commit 180e92d

Browse files
author
Eric Biggers
committed
arm64: fpsimd: Remove obsolete cond_yield macro
All invocations of the cond_yield macro have been removed, so remove the macro definition as well. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20260401000548.133151-10-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
1 parent 6d575f1 commit 180e92d

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

arch/arm64/include/asm/assembler.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -748,28 +748,6 @@ alternative_else_nop_endif
748748
set_sctlr sctlr_el2, \reg
749749
.endm
750750

751-
/*
752-
* Check whether asm code should yield as soon as it is able. This is
753-
* the case if we are currently running in task context, and the
754-
* TIF_NEED_RESCHED flag is set. (Note that the TIF_NEED_RESCHED flag
755-
* is stored negated in the top word of the thread_info::preempt_count
756-
* field)
757-
*/
758-
.macro cond_yield, lbl:req, tmp:req, tmp2
759-
#ifdef CONFIG_PREEMPT_VOLUNTARY
760-
get_current_task \tmp
761-
ldr \tmp, [\tmp, #TSK_TI_PREEMPT]
762-
/*
763-
* If we are serving a softirq, there is no point in yielding: the
764-
* softirq will not be preempted no matter what we do, so we should
765-
* run to completion as quickly as we can. The preempt_count field will
766-
* have BIT(SOFTIRQ_SHIFT) set in this case, so the zero check will
767-
* catch this case too.
768-
*/
769-
cbz \tmp, \lbl
770-
#endif
771-
.endm
772-
773751
/*
774752
* Branch Target Identifier (BTI)
775753
*/

0 commit comments

Comments
 (0)