Commit f00b53f1 authored by Robin Murphy's avatar Robin Murphy Committed by Catalin Marinas
Browse files

arm64: cpufeature: Add GCS to cpucap_is_possible()



Since system_supports_gcs() ends up referring to cpucap_is_possible(),
teach the latter about GCS for consistency with similar features.

Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/416c7369fcdce4ebb2a8f12daae234507be27e38.1733406275.git.robin.murphy@arm.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 16d53066
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -44,6 +44,8 @@ cpucap_is_possible(const unsigned int cap)
		return IS_ENABLED(CONFIG_ARM64_TLB_RANGE);
	case ARM64_HAS_S1POE:
		return IS_ENABLED(CONFIG_ARM64_POE);
	case ARM64_HAS_GCS:
		return IS_ENABLED(CONFIG_ARM64_GCS);
	case ARM64_UNMAP_KERNEL_AT_EL0:
		return IS_ENABLED(CONFIG_UNMAP_KERNEL_AT_EL0);
	case ARM64_WORKAROUND_843419:
+1 −2
Original line number Diff line number Diff line
@@ -847,8 +847,7 @@ static inline bool system_supports_poe(void)

static inline bool system_supports_gcs(void)
{
	return IS_ENABLED(CONFIG_ARM64_GCS) &&
		alternative_has_cap_unlikely(ARM64_HAS_GCS);
	return alternative_has_cap_unlikely(ARM64_HAS_GCS);
}

static inline bool system_supports_haft(void)