From f04557374dd37a15842197ce075be600276d341d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 16 Jan 2025 14:05:10 -0500 Subject: ioq: Prefetch slots with a write intent --- src/ioq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ioq.c') diff --git a/src/ioq.c b/src/ioq.c index ced9864..8050c9e 100644 --- a/src/ioq.c +++ b/src/ioq.c @@ -387,7 +387,7 @@ static struct ioq_ent *ioq_slot_pop(struct ioqq *ioqq, ioq_slot *slot, bool bloc // slot is not full, this will prefetch an invalid address, but // experimentally this is worth it on both Intel (Alder Lake) // and AMD (Zen 2). - __builtin_prefetch((void *)(prev << 1)); + __builtin_prefetch((void *)(prev << 1), 1 /* write */); #endif // empty → skip(1) -- cgit v1.2.3