Commit 1e55b44d authored by Usama Arif's avatar Usama Arif Committed by Will Deacon
Browse files

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: default avatarSteven Price <steven.price@arm.com>
Signed-off-by: default avatarUsama Arif <usama.arif@bytedance.com>
Reviewed-by: default avatarSteven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20221104061659.4116508-1-usama.arif@bytedance.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 59598b42
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -141,10 +141,6 @@ static bool __init has_pv_steal_clock(void)
{
	struct arm_smccc_res res;

	/* To detect the presence of PV time support we require SMCCC 1.1+ */
	if (arm_smccc_1_1_get_conduit() == SMCCC_CONDUIT_NONE)
		return false;

	arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
			     ARM_SMCCC_HV_PV_TIME_FEATURES, &res);