]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
arm: spectre-v2: use arm_smccc_1_1_get_conduit()
authorMark Rutland <mark.rutland@arm.com>
Fri, 9 Aug 2019 13:22:42 +0000 (14:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 14 Oct 2019 09:55:14 +0000 (10:55 +0100)
commit6848253ddeae9fa44680bab6212599283f9d4ef2
treeae1b1df6a4db914f2d47986e6c47b3ef04de5ffb
parentc98bd29917281a5023f71a3148f538ad2709c0f0
arm: spectre-v2: use arm_smccc_1_1_get_conduit()

Now that we have arm_smccc_1_1_get_conduit(), we can hide the PSCI
implementation details from the arm spectre-v2 code, so let's do so.

As arm_smccc_1_1_get_conduit() implicitly checks that the SMCCC version
is at least SMCCC_VERSION_1_1, we no longer need to check this
explicitly where switch statements have a default case.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/mm/proc-v7-bugs.c