Skip to content

Commit 2202d3c

Browse files
kfrydryxabonislawski
authored andcommitted
platform: register basefw CPS consumption on boot
On init, register consumption of 10MCPS fot base fw Signed-off-by: Krzysztof Frydryk <krzysztofx.frydryk@intel.com>
1 parent 1e21a5d commit 2202d3c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/platform/intel/ace/platform.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <sof/lib/agent.h>
1515
#include <sof/lib/mm_heap.h>
1616
#include <sof/lib/watchdog.h>
17+
#include <sof/lib/cpu-clk-manager.h>
1718
#include <sof/schedule/edf_schedule.h>
1819
#include <sof/schedule/ll_schedule.h>
1920
#include <sof/schedule/ll_schedule_domain.h>
@@ -72,14 +73,17 @@ int platform_boot_complete(uint32_t boot_message)
7273
return ipc_platform_send_msg(&msg);
7374
}
7475

76+
/* Value to be determined experimentaly */
77+
#define BASE_CPS_USAGE 10000
7578
/* Runs on the primary core only */
7679
int platform_init(struct sof *sof)
7780
{
7881
int ret;
7982

8083
trace_point(TRACE_BOOT_PLATFORM_CLOCK);
8184
platform_clock_init(sof);
82-
clock_set_freq(CLK_CPU(cpu_get_id()), CLK_MAX_CPU_HZ);
85+
kcps_budget_init();
86+
core_kcps_adjust(0, BASE_CPS_USAGE);
8387

8488
trace_point(TRACE_BOOT_PLATFORM_SCHED);
8589
scheduler_init_edf();

0 commit comments

Comments
 (0)