Jia He 16bde28931
UPSTREAM: arm64: cpufeature: introduce helper cpu_has_hw_af()
We unconditionally set the HW_AFDBM capability and only enable it on
CPUs which really have the feature. But sometimes we need to know
whether this cpu has the capability of HW AF. So decouple AF from
DBM by a new helper cpu_has_hw_af().

If later we noticed a potential performance issue on this path, we can
turn it into a static label as with other CPU features.

Signed-off-by: Jia He <justin.he@arm.com>
Suggested-by: Suzuki Poulose <Suzuki.Poulose@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 47d7b15b88f96a90694cfc607d0717d62dff6c45)
Bug: 228114874
Signed-off-by: Yu Zhao <yuzhao@google.org>
Change-Id: Ie0c4482c4cc0d23d75ed22bfaedb7e32a448f293
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-07-01 09:14:41 +00:00
..
2022-06-30 14:12:32 +00:00
2022-04-06 13:20:36 +07:00
2022-04-06 13:20:36 +07:00
2022-04-06 13:20:36 +07:00
2022-04-06 13:20:36 +07:00
2022-04-06 13:20:36 +07:00
2022-04-06 13:20:36 +07:00