summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2026-08-05 07:43:08 +0800
committerJoerg Roedel <joerg.roedel@amd.com>2026-08-10 10:04:08 +0200
commit5b3ba0a002672d189fd55eaafdd4f55e5c6c522b (patch)
tree068f26722182389af31dc094636c1eed9c84f925 /tools/perf/scripts/python
parent1c677d8a2c3cbc22287ac34483e6b2b7b20ddf52 (diff)
iommu/vt-d: Cache max domain ID to avoid redundant calculation
The cap_ndoms() helper calculates the maximum available domain ID from the value of capability register, which can be inefficient if called repeatedly. Cache the maximum supported domain ID in max_domain_id field during initialization to avoid redundant calls to cap_ndoms() throughout the IOMMU driver. No functionality change. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions