Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: paravirt: remove conduit check in has_pv_steal_clock

arm_smccc_1_1_invoke() which is called later on in the function
will return failure if there's no conduit (or pre-SMCCC 1.1),
hence the check is unnecessary.

Suggested-by: Steven Price <steven.price@arm.com>
Signed-off-by: Usama Arif <usama.arif@bytedance.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20221104061659.4116508-1-usama.arif@bytedance.com
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Usama Arif and committed by
Will Deacon
1e55b44d 59598b42

-4
-4
arch/arm64/kernel/paravirt.c
··· 141 141 { 142 142 struct arm_smccc_res res; 143 143 144 - /* To detect the presence of PV time support we require SMCCC 1.1+ */ 145 - if (arm_smccc_1_1_get_conduit() == SMCCC_CONDUIT_NONE) 146 - return false; 147 - 148 144 arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID, 149 145 ARM_SMCCC_HV_PV_TIME_FEATURES, &res); 150 146