OSDN Git Service

arm64: Add HAS_ECV_CNTPOFF capability
authorMarc Zyngier <maz@kernel.org>
Thu, 30 Mar 2023 17:47:43 +0000 (18:47 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 30 Mar 2023 18:01:09 +0000 (19:01 +0100)
commit326349943ed181890b8b2af2755bd0eac93bd66d
tree3125a25716b00c5b569d23df8aabc8b36928510d
parenteaacaa4f26ade43dfdfdd3707c95d734b5ffc530
arm64: Add HAS_ECV_CNTPOFF capability

Add the probing code for the FEAT_ECV variant that implements CNTPOFF_EL2.
Why it is optional is a mystery, but let's try and detect it.

Reviewed-by: Reiji Watanabe <reijiw@google.com>
Reviewed-by: Colton Lewis <coltonlewis@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230330174800.2677007-4-maz@kernel.org
arch/arm64/kernel/cpufeature.c
arch/arm64/tools/cpucaps