Use a wfet, rather than a busy wait, in DELAY() when the FEAT_WFxT
extension is available.
Sponsored by: Arm Ltd
Signed-off-by: Harry Moulton <harry.moulton@arm.com>
Differential D48580
arm64: use FEAT_WFxT for DELAY() when available harry.moulton_arm.com on Jan 21 2025, 3:21 PM. Authored by Tags None Referenced Files
Subscribers
Details
Use a wfet, rather than a busy wait, in DELAY() when the FEAT_WFxT Sponsored by: Arm Ltd
Diff Detail
Event Timeline
Comment Actions Use the CPU feature framework to determine whether the WFxT instructions are available on all CPUs, and set enable_wfxt accordingly. When the timer is used for DELAY(), it'll check whether it can use wfet().
Comment Actions Amended arm_tmr_do_delay() to use end for wfet(), used get_kernel_reg() rather than READ_SPECIALREG(), and added CPU_FEAT_AFTER_DEV flag, so support is checked after secondary cpus are brought up. |