soc/intel/xeon_sp/uncore_acpi: use is_dev_on_domain0 where possible

Replace 'is_domain0(dev_get_domain(dev))' with 'is_dev_on_domain0(dev)'
which is a helper function that does exactly the same, but slightly
simplifies the call.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I8b0c52a9176288039e6414a09c3fe0662db79e4b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83908
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shuo Liu <shuo.liu@intel.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Felix Held
2024-08-14 17:55:41 +02:00
parent 078a5a0e7c
commit c6889816d8

View File

@@ -532,7 +532,7 @@ static unsigned long acpi_fill_dmar(unsigned long current)
struct device *dev = NULL; struct device *dev = NULL;
struct device *iommu0 = NULL; struct device *iommu0 = NULL;
while ((dev = dev_find_device(PCI_VID_INTEL, MMAP_VTD_CFG_REG_DEVID, dev))) { while ((dev = dev_find_device(PCI_VID_INTEL, MMAP_VTD_CFG_REG_DEVID, dev))) {
if (is_domain0(dev_get_domain(dev))) { if (is_dev_on_domain0(dev)) {
iommu0 = dev; iommu0 = dev;
continue; continue;
} }