ARM: MCPM: make internal helpers private to the core code
authorNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 28 Apr 2015 18:11:07 +0000 (14:11 -0400)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 6 May 2015 15:45:46 +0000 (11:45 -0400)
commit7cc8b991cdc985aaa73bf9c429c810cd442fb74d
tree8b5f9290847562b1cd0000581b64b6febc95a0f8
parent77404d81cadf192cc1261d6269f622a06b83cdd5
ARM: MCPM: make internal helpers private to the core code

This concerns the following helpers:

__mcpm_cpu_going_down()
__mcpm_cpu_down()
__mcpm_outbound_enter_critical()
__mcpm_outbound_leave_critical()
__mcpm_cluster_state()

They are and should only be used by the core code now.  Therefore their
declarations are removed from mcpm.h and their definitions are made
static, hence the need to move them before their users which accounts
for the bulk of this patch.

This left the mcpm_sync_struct definition at an odd location, therefore
it is moved as well with some comment clarifications.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Dave Martin <Dave.Martin@arm.com>
arch/arm/common/mcpm_entry.c
arch/arm/include/asm/mcpm.h