drm/msm/sde: optimize sde interrupts handling
Current interrupt handler in the sde driver looks
up within a static hash table for the interrupts
that driver needs to service.
Current table holds placeholders for interrupts
which are not in use, this unnecessarily
increments the number of loops to find the
interrupt that needs to be serviced.
This change optimizes the execution by
dynamically allocating the hash table during
initialization with the valid interrupts for
the target, and also prioritize the interrupts
that are most likely to be triggered during
common use cases by adding them at the top of
the table.
Change-Id: I298c6398e1694bb646cb346282f4773246d71946
Signed-off-by:
Ingrid Gallardo <ingridg@codeaurora.org>
Loading
Please register or sign in to comment