irq_pipeline: likely/unlikely macro usage

Tobias Schaffner <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
Hi all,

while staring at the irq_pipelining implementation, I noticed that there
are some locations that use the unlikely macro for the OOB fast path,
e.g., [1].

Could someone explain why we are optimizing for the in-band path here?
Although the in-band path is indeed more likely, I would have expected
that we would want to optimize for the OOB path anyway, since this is
where the saved cycles really matter.

Best,
Tobias

[1] 
https://gitlab.com/Xenomai/linux-dovetail/-/blob/v5.10.y-dovetail/arch/x86/kernel/irq_pipeline.c?ref_type=heads#L260
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.