提交 1e55b44d 编写于 作者: U Usama Arif 提交者: Will Deacon

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: NSteven Price <steven.price@arm.com>
Signed-off-by: NUsama Arif <usama.arif@bytedance.com>
Reviewed-by: NSteven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20221104061659.4116508-1-usama.arif@bytedance.comSigned-off-by: NWill Deacon <will@kernel.org>
上级 59598b42
...@@ -141,10 +141,6 @@ static bool __init has_pv_steal_clock(void) ...@@ -141,10 +141,6 @@ static bool __init has_pv_steal_clock(void)
{ {
struct arm_smccc_res res; 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_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
ARM_SMCCC_HV_PV_TIME_FEATURES, &res); ARM_SMCCC_HV_PV_TIME_FEATURES, &res);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册