aboutsummaryrefslogtreecommitdiff
path: root/src/common/cpuinfo/CpuInfo.h
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2021-06-24 20:32:11 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2021-06-28 12:00:14 +0000
commit731fe667e3009bfbfee8b0eb74ecb68b291e4311 (patch)
treee3a8ea66b88cee4af19363212e5a92864032becd /src/common/cpuinfo/CpuInfo.h
parentb1496e6a1074c90fba64633ec92fa202f5f7d1d8 (diff)
downloadComputeLibrary-731fe667e3009bfbfee8b0eb74ecb68b291e4311.tar.gz
Simplify CpuInfo logic
Refactors the CpuInfo extraction code and cleans the usage of it in the CpuContext class Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: Iea47dfdaad431fb49285da92778d6b42cf318f60 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5848 Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Giorgio Arena <giorgio.arena@arm.com>
Diffstat (limited to 'src/common/cpuinfo/CpuInfo.h')
-rw-r--r--src/common/cpuinfo/CpuInfo.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/cpuinfo/CpuInfo.h b/src/common/cpuinfo/CpuInfo.h
index c04c9f4ec8..135ff96931 100644
--- a/src/common/cpuinfo/CpuInfo.h
+++ b/src/common/cpuinfo/CpuInfo.h
@@ -100,6 +100,15 @@ public:
return _isa.svef32mm;
}
+ const CpuIsaInfo &isa() const
+ {
+ return _isa;
+ }
+ const std::vector<CpuModel> &cpus() const
+ {
+ return _cpus;
+ }
+
CpuModel cpu_model(uint32_t cpuid) const;
CpuModel cpu_model() const;
uint32_t num_cpus() const;