File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 */
7679int 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 ();
You can’t perform that action at this time.
0 commit comments