PM / EM: change name of em_pd_energy to em_cpu_energy
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 27 May 2020 09:58:52 +0000 (10:58 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Jun 2020 15:16:42 +0000 (17:16 +0200)
commitf0b5694791ce70dba16758c3b838d5ddc7731b02
treee3242d71737d92b60ce58311fb034f66d691689f
parent07891f15d91317b2220a0b610a2d7e324a88105d
PM / EM: change name of em_pd_energy to em_cpu_energy

Energy Model framework now supports other devices than CPUs. Refactor some
of the functions in order to prevent wrong usage. The old function
em_pd_energy has to generic name. It must not be used without proper
cpumask pointer, which is possible only for CPU devices. Thus, rename it
and add proper description to warn of potential wrong usage for other
devices.

Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Quentin Perret <qperret@google.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/energy_model.h
kernel/sched/fair.c