]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Move opal_power_control_init() call in opal_init().
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Thu, 13 Dec 2018 05:47:31 +0000 (11:17 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 00:32:49 +0000 (11:32 +1100)
commit398da7daa71e39341126f97bd2e81f369c852d28
tree97bd41545866508119afff9ec6a1b82390ce2593
parent3b44c9e5f52982102aec0994d32620ddee4a2520
powerpc/powernv: Move opal_power_control_init() call in opal_init().

opal_power_control_init() depends on opal message notifier to be
initialized, which is done in opal_init()->opal_message_init(). But both
these initialization are called through machine initcalls and it all
depends on in which order they being called. So far these are called in
correct order (may be we got lucky) and never saw any issue. But it is
clearer to control initialization order explicitly by moving
opal_power_control_init() into opal_init().

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-power.c
arch/powerpc/platforms/powernv/opal.c