Re: [Intel-gfx] [PATCH 4/4] drm/i915: split gen11_irq_handler to make it shareable

2019-10-24 Thread Lucas De Marchi
On Thu, Oct 24, 2019 at 12:51:22PM -0700, Lucas De Marchi wrote: Split gen11_irq_handler() to receive as parameter the function pointers. This allows to share the interrupt handler even if the enable/disable functions are different. Make sure it's always inlined to avoid the extra indirect call

[Intel-gfx] [PATCH 4/4] drm/i915: split gen11_irq_handler to make it shareable

2019-10-24 Thread Lucas De Marchi
Split gen11_irq_handler() to receive as parameter the function pointers. This allows to share the interrupt handler even if the enable/disable functions are different. Make sure it's always inlined to avoid the extra indirect call on the hot path. Checking with gcc 9 this produce the exact same co