diff options
| author | Anshuman Khandual <[email protected]> | 2020-05-27 10:04:36 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2020-05-27 11:46:07 +0000 |
| commit | 3577dd37c703e0d599e8c244917b8e369f38a45a (patch) | |
| tree | d939795a701da38bf0a5788f4e5ad4cd6901dfae /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | arm64/cpuinfo: Add ID_MMFR4_EL1 into the cpuinfo_arm64 context (diff) | |
| download | kernel-3577dd37c703e0d599e8c244917b8e369f38a45a.tar.gz kernel-3577dd37c703e0d599e8c244917b8e369f38a45a.zip | |
arm64/cpufeature: Add get_arm64_ftr_reg_nowarn()
There is no way to proceed when requested register could not be searched in
arm64_ftr_reg[]. Requesting for a non present register would be an error as
well. Hence lets just WARN_ON() when search fails in get_arm64_ftr_reg()
rather than checking for return value and doing a BUG_ON() instead in some
individual callers. But there are also caller instances that dont error out
when register search fails. Add a new helper get_arm64_ftr_reg_nowarn() for
such cases.
Signed-off-by: Anshuman Khandual <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Suzuki K Poulose <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
