powerpc/pseries/mobility: use struct for shared state
authorNathan Lynch <nathanl@linux.ibm.com>
Mon, 15 Mar 2021 08:00:44 +0000 (03:00 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Mar 2021 22:25:12 +0000 (09:25 +1100)
commite834df6cfc71d8e5ce2c27a0184145ea125c3f0f
tree666a8d351a8c4c779d24f73c7aa1a627606e60de
parentcc7a0bb058b85ea03db87169c60c7cfdd5d34678
powerpc/pseries/mobility: use struct for shared state

The atomic_t counter is the only shared state for the join/suspend
sequence so far, but that will change. Contain it in a
struct (pseries_suspend_info), and document its intended use. No
functional change.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210315080045.460331-2-nathanl@linux.ibm.com
arch/powerpc/platforms/pseries/mobility.c