Skip to content

Commit 4032f17

Browse files
kv2019ilgirdwood
authored andcommitted
platform: intel: ace: make CPU clock control calls optional
Dynamic CPU clock control is not enabled in all ACE builds. Make the kcps_*() calls conditional in the platform initialization code. The default clock frequency at boot should be set by platform code in Zephyr for each platform. Link: thesofproject#9541 Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 66608f3 commit 4032f17

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/platform/intel/ace/platform.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,14 @@ int platform_init(struct sof *sof)
9090

9191
trace_point(TRACE_BOOT_PLATFORM_CLOCK);
9292
platform_clock_init(sof);
93-
kcps_budget_init();
9493

9594
#if CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL
95+
kcps_budget_init();
96+
9697
ret = core_kcps_adjust(cpu_get_id(), PRIMARY_CORE_BASE_CPS_USAGE);
97-
#else
98-
ret = core_kcps_adjust(cpu_get_id(), CLK_MAX_CPU_HZ / 1000);
99-
#endif
10098
if (ret < 0)
10199
return ret;
100+
#endif
102101

103102
trace_point(TRACE_BOOT_PLATFORM_SCHED);
104103
scheduler_init_edf();

0 commit comments

Comments
 (0)