thermal/drivers/core: Use governor table to initialize
Now that the governor table is in place and the macro allows to browse the table, declare the governor so the entry is added in the governor table in the init section. The [un]register_thermal_governors function does no longer need to use the exported [un]register thermal governor's specific function which in turn call the [un]register_thermal_governor. The governors are fully self-encapsulated. The cyclic dependency is no longer needed, remove it. Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Cette révision appartient à :

révisé par
Zhang Rui

Parent
980af75ede
révision
57c5b2ec90
@@ -117,14 +117,4 @@ static struct thermal_governor thermal_gov_fair_share = {
|
||||
.name = "fair_share",
|
||||
.throttle = fair_share_throttle,
|
||||
};
|
||||
|
||||
int thermal_gov_fair_share_register(void)
|
||||
{
|
||||
return thermal_register_governor(&thermal_gov_fair_share);
|
||||
}
|
||||
|
||||
void thermal_gov_fair_share_unregister(void)
|
||||
{
|
||||
thermal_unregister_governor(&thermal_gov_fair_share);
|
||||
}
|
||||
|
||||
THERMAL_GOVERNOR_DECLARE(thermal_gov_fair_share);
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur