aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common/mcpm_entry.c
diff options
context:
space:
mode:
authorDave Martin <Dave.Martin@arm.com>2014-04-17 11:58:39 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-05-25 18:48:12 -0400
commit166aaf396654b533f536f2cf84d7558eb42f1c9f (patch)
treeeb9b0ce90ea4aa745de4c7ef0d3a7a8ec1a36593 /arch/arm/common/mcpm_entry.c
parent9581960a40ab0e281b695bf03744c8924ec3b5d0 (diff)
ARM: 8029/1: mcpm: Rename the power_down_finish() functions to be less confusing
The name "power_down_finish" seems to be causing some confusion, because it suggests that this function is responsible for taking some action to cause the specified CPU to complete its power down. This patch renames the affected functions to "wait_for_powerdown" and similar, since this function's intended purpose is just to wait for the hardware to finish a powerdown initiated by a previous cpu_power_down. Signed-off-by: Dave Martin <Dave.Martin@arm.com> Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/common/mcpm_entry.c')
-rw-r--r--arch/arm/common/mcpm_entry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/common/mcpm_entry.c b/arch/arm/common/mcpm_entry.c
index 1e361abc29eb..7522c87e82fc 100644
--- a/arch/arm/common/mcpm_entry.c
+++ b/arch/arm/common/mcpm_entry.c
@@ -101,14 +101,14 @@ void mcpm_cpu_power_down(void)
101 BUG(); 101 BUG();
102} 102}
103 103
104int mcpm_cpu_power_down_finish(unsigned int cpu, unsigned int cluster) 104int mcpm_wait_for_cpu_powerdown(unsigned int cpu, unsigned int cluster)
105{ 105{
106 int ret; 106 int ret;
107 107
108 if (WARN_ON_ONCE(!platform_ops || !platform_ops->power_down_finish)) 108 if (WARN_ON_ONCE(!platform_ops || !platform_ops->wait_for_powerdown))
109 return -EUNATCH; 109 return -EUNATCH;
110 110
111 ret = platform_ops->power_down_finish(cpu, cluster); 111 ret = platform_ops->wait_for_powerdown(cpu, cluster);
112 if (ret) 112 if (ret)
113 pr_warn("%s: cpu %u, cluster %u failed to power down (%d)\n", 113 pr_warn("%s: cpu %u, cluster %u failed to power down (%d)\n",
114 __func__, cpu, cluster, ret); 114 __func__, cpu, cluster, ret);