x86: irq: Move irq_router to a per driver priv
authorBin Meng <bmeng.cn@gmail.com>
Mon, 1 Feb 2016 09:40:51 +0000 (01:40 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 5 Feb 2016 04:47:22 +0000 (12:47 +0800)
commitb46c2088da17b8f9210bf0860af88ec533435af9
treec2e9ffbc748c23bcf12c9d1029b31d6b8e173b5f
parent819133d9f591bfc187218342702b2ff69eecca25
x86: irq: Move irq_router to a per driver priv

At present irq_router is declared as a static struct irq_router in
arch/x86/cpu/irq.c. Since it's a driver control block, it makes sense
to move it to a per driver priv. Adjust existing APIs to accept an
additional parameter of irq_router's udevice.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/irq.c
arch/x86/include/asm/pirq_routing.h
arch/x86/lib/pirq_routing.c