[PATCH RESEND v8 0/4] Make IPA use PM_EM

From: Quentin Perret
Date: Wed Sep 11 2019 - 09:42:58 EST


Re-sending this from an email address I can access. For a cover letter,
see:
https://lore.kernel.org/lkml/20190812084235.21440-1-quentin.perret@xxxxxxx/

Changes in v8:
- Fixed checkpatch errors (Rui)

Changes in v7
- Added patch 02/04 to fix the build error reported by the kbuild bot

Changes in v6
- Added Daniel's and Viresh's Acked-by to all patches

Changes in v5:
- Changed patch 02 to guard IPA-specific code in cpu_cooling.c with
appropriate ifdefery (Daniel)
- Rebased on 5.2-rc2

Changes in v4:
- Added Viresh's Acked-by to all 3 patches
- Improved commit message of patch 3/3 to explain how it has no
functional impact on existing users (Eduardo)

Changes in v3:
- Changed warning message for unordered tables to something more
explicit (Viresh)
- Changed WARN() into a pr_err() for consistency

Changes in v2:
- Fixed patch 01/03 to actually enable CONFIG_ENERGY_MODEL
- Added "depends on ENERGY_MODEL" to IPA (Daniel)
- Added check to bail out if the freq table is unsorted (Viresh)


Quentin Perret (4):
arm64: defconfig: Enable CONFIG_ENERGY_MODEL
PM / EM: Declare EM data types unconditionally
thermal: cpu_cooling: Make the power-related code depend on IPA
thermal: cpu_cooling: Migrate to using the EM framework

arch/arm64/configs/defconfig | 1 +
drivers/thermal/Kconfig | 1 +
drivers/thermal/cpu_cooling.c | 427 ++++++++++++++--------------------
include/linux/energy_model.h | 3 +-
4 files changed, 178 insertions(+), 254 deletions(-)

--
2.22.1