dm: x86: Add a common PIRQ init function
authorSimon Glass <sjg@chromium.org>
Wed, 20 Jan 2016 04:32:27 +0000 (21:32 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 24 Jan 2016 04:07:18 +0000 (12:07 +0800)
commitd3b884b294f1927d6599ddb243a7e6c7bb9aaef3
treec942eb4f11d008a6e64ee026aac1dba9e8453db7
parent12d6929e1f70da7bdbd7ac1de3db33fdff50a716
dm: x86: Add a common PIRQ init function

Most x86 interrupt drivers will want to use the standard PIRQ routing and
table setup. Put this code in a common function so it can be used by those
drivers that want it.

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