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
..
2019-08-09 09:15:05 +02:00
2019-09-17 10:27:46 -07:00
2019-09-16 09:56:27 -07:00
2019-08-20 22:09:52 +02:00
2019-07-01 08:18:54 -06:00
2019-05-07 08:39:02 -06:00
2018-06-15 18:10:01 -03:00
2019-06-12 20:27:13 +02:00
2018-08-22 10:52:48 -07:00
2019-09-05 19:52:33 -06:00
2018-01-01 12:40:27 -07:00
2018-12-19 10:42:08 +01:00
2017-11-13 01:41:20 +01:00
2019-02-15 16:54:38 +01:00
2019-09-05 11:40:54 +02:00
2019-10-02 06:36:50 -07:00
2019-07-05 21:34:50 +02:00
2018-11-19 19:03:46 -07:00
2019-09-07 04:28:05 -03:00
2019-09-02 11:43:54 +01:00
2018-07-12 21:35:28 +02:00
2018-11-30 13:29:04 +00:00
2019-03-07 18:32:03 -08:00
2018-06-07 17:34:35 -07:00
2019-08-14 15:30:35 +02:00
2018-03-26 13:14:43 -04:00
2019-08-08 09:09:25 +02:00
2018-10-17 13:56:58 -07:00
2019-06-13 09:02:33 -04:00
2019-02-08 15:02:49 -08:00
2018-01-08 08:22:45 -06:00
2017-11-09 10:23:28 +01:00
2019-10-04 18:11:08 -07:00
2017-11-17 16:10:04 -08:00
2019-08-01 21:49:46 +02:00
2019-06-12 11:42:13 +02:00
2019-06-15 12:25:49 +02:00
2019-08-23 16:39:26 +01:00
2018-09-25 20:17:35 -07:00
2017-11-07 12:22:21 +01:00
2019-05-31 12:37:46 -07:00
2019-10-28 13:33:41 -07:00
2018-07-07 17:25:23 +02:00
2019-10-31 14:01:40 -07:00
2019-02-07 16:38:35 +01:00
2018-01-15 12:07:46 -08:00
2018-06-20 11:35:56 +02:00
2019-09-07 21:42:25 +02:00
2019-10-02 10:06:45 +02:00
2018-10-11 09:16:44 -07:00
2019-11-07 07:00:26 +01:00
2019-02-07 00:13:27 +01:00
2019-08-30 07:27:17 -07:00
2019-07-31 19:03:35 +02:00
2018-12-10 10:17:45 +01:00
2019-01-11 18:05:40 -08:00
2019-05-15 17:35:54 +01:00
2018-12-22 12:15:29 +01:00
2019-10-14 15:04:01 -07:00
2017-08-15 09:02:08 -07:00