Skip to content

Commit 1e55b44

Browse files
uarif1willdeacon
authored andcommitted
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 <[email protected]> Signed-off-by: Usama Arif <[email protected]> Reviewed-by: Steven Price <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 59598b4 commit 1e55b44

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/arm64/kernel/paravirt.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ static bool __init has_pv_steal_clock(void)
141141
{
142142
struct arm_smccc_res res;
143143

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-
148144
arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID,
149145
ARM_SMCCC_HV_PV_TIME_FEATURES, &res);
150146

0 commit comments

Comments
 (0)