]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/powernv: Don't alloc IRQ map if necessary
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Fri, 23 Jan 2015 03:25:06 +0000 (14:25 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Jan 2015 04:28:10 +0000 (15:28 +1100)
commit31494cf3532cfee0bf5c913ac9962971aab7b1d4
tree73ebfdceed8b6920cd867c962712dd7bc69953e4
parentc1c3a526bb4ddbec7639a9fb3b84fede25b201d9
powerpc/powernv: Don't alloc IRQ map if necessary

On PowerNV platform, the OPAL interrupts are exported by firmware
through device-node property (/ibm,opal::opal-interrupts). Under
some extreme circumstances (e.g. simulator), we don't have this
property found from the device tree. For that case, we shouldn't
allocate the interrupt map. Otherwise, slab complains allocating
zero sized memory chunk.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal.c