summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/xeon_sp/include/soc/util.h
diff options
context:
space:
mode:
authorShuo Liu <shuo.liu@intel.com>2024-02-21 18:54:31 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-02-22 14:13:26 +0000
commit313b18abe5415ed31d1dd52344bd27e56278c9e7 (patch)
treec1272beece3c6a7d09111ef3da9f9b4b5f1a6c12 /src/soc/intel/xeon_sp/include/soc/util.h
parent2eee78aeb4a67cea05dcf573c1e96d7eb516c334 (diff)
downloadcoreboot-313b18abe5415ed31d1dd52344bd27e56278c9e7.tar.gz
coreboot-313b18abe5415ed31d1dd52344bd27e56278c9e7.tar.bz2
coreboot-313b18abe5415ed31d1dd52344bd27e56278c9e7.zip
soc/intel/xeon_sp: Refactor IOAT compiler optimization outs
IOAT logics are optimized out for non-IOAT platforms where CONFIG(HAVE_IOAT_DOMAINS) as false. This patch puts CONFIG(HAVE_IOAT_DOMAINS) check together ahead of is_ioat_iio_stack_res() check in the corresponding if statement to fulfill the optimization outs. TEST=intel/archercity CRB Change-Id: I2d16c6ff5320bc9195a1033b6d55e3d997b19b88 Signed-off-by: Shuo Liu <shuo.liu@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80683 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/include/soc/util.h')
-rw-r--r--src/soc/intel/xeon_sp/include/soc/util.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/soc/intel/xeon_sp/include/soc/util.h b/src/soc/intel/xeon_sp/include/soc/util.h
index b532b9a7a832..43bf9d68f812 100644
--- a/src/soc/intel/xeon_sp/include/soc/util.h
+++ b/src/soc/intel/xeon_sp/include/soc/util.h
@@ -25,14 +25,7 @@ struct iiostack_resource {
void get_iiostack_info(struct iiostack_resource *info);
bool is_pcie_iio_stack_res(const STACK_RES *res);
bool is_ubox_stack_res(const STACK_RES *res);
-#if CONFIG(HAVE_IOAT_DOMAINS)
bool is_ioat_iio_stack_res(const STACK_RES *res);
-#else
-static inline bool is_ioat_iio_stack_res(const STACK_RES *res)
-{
- return false;
-}
-#endif
void bios_done_msr(void *unused);
#endif