summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorQuentin Perret <qperret@google.com>2019-10-30 15:14:49 +0000
committerDaniel Lezcano <daniel.lezcano@linaro.org>2019-11-07 07:02:40 +0100
commit27a47e422ef3cb09f6a428e2b05eb79079506875 (patch)
tree5bc028114eef47f169b7c591216ea0bd918f94c9 /drivers
parent48da6f80057c3f8d81aa387dc755668a43884b34 (diff)
downloadlinux-27a47e422ef3cb09f6a428e2b05eb79079506875.tar.bz2
PM / EM: Declare EM data types unconditionally
The structs representing capacity states and performance domains of an Energy Model are currently only defined for CONFIG_ENERGY_MODEL=y. That makes it hard for code outside PM_EM to manipulate those structures without a lot of ifdefery or stubbed accessors. So, move the declaration of the two structs outside of the CONFIG_ENERGY_MODEL ifdef. The client code (e.g. EAS or thermal) always checks the return of em_cpu_get() before using it, so the exising code is still safe to use as-is. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Quentin Perret <qperret@google.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20191030151451.7961-3-qperret@google.com
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions