From 5e15640ec71d0c84cbd2d2345ffb91a4ccf57c3f Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 22 Nov 2021 19:33:34 +0100 Subject: [PATCH] pm: stats: use pm_stats prefix Use pm_stats prefix instead of pm_cpu_stats (to align with Kconfig/API naming). Signed-off-by: Gerard Marull-Paretas --- subsys/pm/pm_stats.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/subsys/pm/pm_stats.c b/subsys/pm/pm_stats.c index f4af14cdd5d..e918b97c4fe 100644 --- a/subsys/pm/pm_stats.c +++ b/subsys/pm/pm_stats.c @@ -13,19 +13,19 @@ #include #include -STATS_SECT_START(pm_cpu_stats) +STATS_SECT_START(pm_stats) STATS_SECT_ENTRY32(state_count) STATS_SECT_ENTRY32(state_last_cycles) STATS_SECT_ENTRY32(state_total_cycles) STATS_SECT_END; -STATS_NAME_START(pm_cpu_stats) -STATS_NAME(pm_cpu_stats, state_count) -STATS_NAME(pm_cpu_stats, state_last_cycles) -STATS_NAME(pm_cpu_stats, state_total_cycles) -STATS_NAME_END(pm_cpu_stats); +STATS_NAME_START(pm_stats) +STATS_NAME(pm_stats, state_count) +STATS_NAME(pm_stats, state_last_cycles) +STATS_NAME(pm_stats, state_total_cycles) +STATS_NAME_END(pm_stats); -static STATS_SECT_DECL(pm_cpu_stats) stats[CONFIG_MP_NUM_CPUS][PM_STATE_COUNT]; +static STATS_SECT_DECL(pm_stats) stats[CONFIG_MP_NUM_CPUS][PM_STATE_COUNT]; #define PM_STAT_NAME_LEN sizeof("pm_cpu_XXX_state_X_stats") static char names[CONFIG_MP_NUM_CPUS][PM_STATE_COUNT][PM_STAT_NAME_LEN];