xen/x86: Move irq allocation from Xen smp_op.cpu_up()
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 3 Aug 2016 17:22:27 +0000 (13:22 -0400)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 24 Aug 2016 17:44:40 +0000 (18:44 +0100)
commit5fc509bc2bd6dddd4107eaf90680cd76cfc2ffed
tree30265b703433375b2e86f1b96997b4b4971f7be6
parentfa8410b355251fd30341662a40ac6b22d3e38468
xen/x86: Move irq allocation from Xen smp_op.cpu_up()

Commit ce0d3c0a6fb1 ("genirq: Revert sparse irq locking around
__cpu_up() and move it to x86 for now") reverted irq locking
introduced by commit a89941816726 ("hotplug: Prevent alloc/free
of irq descriptors during cpu up/down") because of Xen allocating
irqs in both of its cpu_up ops.

We can move those allocations into CPU notifiers so that original
patch can be reinstated.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/enlighten.c
arch/x86/xen/smp.c
arch/x86/xen/smp.h