powerpc/powernv: Defer OPAL exception handler registration
authorJeremy Kerr <jk@ozlabs.org>
Wed, 1 May 2013 22:31:50 +0000 (22:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 5 May 2013 23:25:36 +0000 (09:25 +1000)
commitc4463b3738181f46cf0e4675841d039f3662caf9
tree57f0b3e61ba11cf571c5c97274125de441a2928b
parent73d2fb758e678c93bc76d40876c2359f0729b0ef
powerpc/powernv: Defer OPAL exception handler registration

Currently, the OPAL exception vectors are registered before the feature
fixups are processed. This means that the now-firmware-owned vectors
will likely be overwritten by the kernel.

This change moves the exception registration code to an early initcall,
rather than at machine_init time.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/opal.c