zephyr/subsys/pm
Andy Ross 0c30db1ec5 subsys/pm: C99-legalize declaration of CPU power states
The CPU power states were declared with a typecast array literal,
which is a GNU extension.

Unfortunately some compilers (xt-xcc even in very recent versions,
when used with -fdata-sections) will die with a compiler error when
those rvalues are used in an expression that also takes their address,
e.g.:

    /* this all by itself crashes xcc -fdata-sections */
    int *foo = (int[]){0};

Declare the array elments in two steps, making the code standard C.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2022-01-27 16:26:27 -05:00
..
policy pm: policy: residency: remove redundant logging 2022-01-11 10:46:20 +01:00
CMakeLists.txt pm: state: add pm_state_cpu_get_all 2022-01-11 10:46:20 +01:00
constraint.c pm: pm_ctrl.c -> constraint.c 2021-11-23 18:12:15 +01:00
device_runtime.c pm: device_runtime: init into PM_DEVICE_STATE_OFF 2022-01-19 13:35:32 -05:00
device.c pm: device: Properly handle -ENOTSUP 2022-01-19 13:35:32 -05:00
Kconfig pm: device: Make power domain optional 2022-01-19 13:35:32 -05:00
pm_stats.c pm: stats: use pm_stats prefix 2021-11-23 18:12:15 +01:00
pm_stats.h pm: stats: pm_(start|stop)_timer -> pm_stats_(start|stop) 2021-11-23 18:12:15 +01:00
pm.c pm: Better name for cpus state variable 2022-01-19 14:22:08 -05:00
state.c subsys/pm: C99-legalize declaration of CPU power states 2022-01-27 16:26:27 -05:00