arm64: Use WFxT for __delay() when possible
authorMarc Zyngier <maz@kernel.org>
Tue, 19 Apr 2022 18:27:55 +0000 (19:27 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 20 Apr 2022 12:24:44 +0000 (13:24 +0100)
commit7d26b0516a0df5888fd1486054bc5159f6c0b88f
tree4b334316f4569a701315f196892c861b1b0cf305
parent9eae588529751f95834bca775b30b66291def7f6
arm64: Use WFxT for __delay() when possible

Marginally optimise __delay() by using a WFIT/WFET sequence.
It probably is a win if no interrupt fires during the delay.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220419182755.601427-11-maz@kernel.org
arch/arm64/lib/delay.c