[Skiboot] [PATCH] interrupts: Speed up opal interrupts scanning

Reza Arbab arbab at linux.ibm.com
Wed Jul 6 02:33:05 AEST 2022


On Wed, Jun 15, 2022 at 04:21:41PM +0200, Frederic Barrat wrote:
>This patch adds a callback for an interrupt source to report whether
>it has opal interrupts. If the source doesn't define it, then we
>fallback to looking at the 'interrupt' and 'attributes' ops, like
>before, as it is still useful on P8. We can then define that new
>callback on the xive sources, allowing to look past the indirection
>level and skip scanning the source when appropriate.

I thought a bit about how you could do this otherwise by checking for 
(is->ops->interrupt == xive_source_interrupt) or something, but the 
callback is a much cleaner way.

Applied to master.

-- 
Reza Arbab


More information about the Skiboot mailing list