power_hikey: Rename some functions to clearly split interactive logic out
Rename some of the functions to make it clear
they are connected to the interactive gov implementation.
Change-Id: I718591bf360408c79314e2297ecebb46cc4685d6
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/power/power_hikey.c b/power/power_hikey.c
index 059f402..a06a0d3 100644
--- a/power/power_hikey.c
+++ b/power/power_hikey.c
@@ -76,7 +76,8 @@
close(fd);
}
-static void power_init(struct power_module __unused *module)
+/*[interactive cpufreq gov funcs]*********************************************/
+static void interactive_power_init(struct power_module __unused *module)
{
int32_t is_svelte = property_get_int32(SVELTE_PROP, 0);
@@ -151,6 +152,13 @@
return 0;
}
+/*[generic functions]*********************************************************/
+
+static void hikey_power_init(struct power_module __unused *module)
+{
+ interactive_power_init(module);
+}
+
static void hikey_power_hint(struct power_module *module, power_hint_t hint,
void *data)
{
@@ -208,7 +216,7 @@
methods: &power_module_methods,
},
- init: power_init,
+ init: hikey_power_init,
setInteractive: power_set_interactive,
powerHint: hikey_power_hint,
setFeature: set_feature,