On Mon, 30 Nov 2015, Qais Yousef wrote:
On 11/30/2015 10:40 AM, Thomas Gleixner wrote:Well, the question is why can't those functions not all use the raw
On Fri, 27 Nov 2015, Qais Yousef wrote:
While trying to get my remoteproc driver work with this I uncovered aWhy can't MIPS store the real hwirq number in irq_data?
problem
with this approach.
mips-gic doesn't store the actual hwirq in the irq_data. It uses
GIC_SHARED_TO_HWIRQ() and GIC_HWIRQ_TO_SHARED() to add and remove an
offset.
I'm wary of ending up in inconsistency hell where some functions need to deal
with raw hwirq and others with translated ones.
I will give this a go first and see if it gets really ugly.
hardware irq. We have it in irq_data exactly to avoid calculations in
the hot path functions.