Files
linux-stable-mirror/include/linux
Quentin Perret 27a47e422e 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
2019-11-07 07:02:40 +01:00
..
2018-03-26 15:09:38 +02:00
2019-02-28 03:28:53 -05:00
2019-10-02 06:36:50 -07:00
2019-06-10 13:00:24 +02:00
2019-09-07 04:28:05 -03:00
2018-04-12 09:41:19 -07:00
2019-07-26 17:01:29 -06:00
2019-10-04 18:11:08 -07:00
2018-07-20 01:11:45 +02:00
2019-10-28 13:33:41 -07:00
2019-10-31 14:01:40 -07:00
2019-09-25 17:51:41 -07:00
2019-10-02 10:06:45 +02:00
2019-11-07 07:00:26 +01:00
2019-08-01 20:51:22 +02:00
2019-10-14 15:04:01 -07:00