Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abonislawski committed Apr 14, 2024
1 parent 12bd7d1 commit 75c65f5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/platform/intel/ace/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static struct pm_notifier pm_state_notifier = {

#if CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL
/* Value to be determined experimentaly */
#define BASE_CPS_USAGE 20000
#define BASE_CPS_USAGE 25000
#else
#define BASE_CPS_USAGE (CLK_MAX_CPU_HZ / 1000)
#endif
Expand All @@ -97,7 +97,13 @@ int platform_init(struct sof *sof)
platform_clock_init(sof);
kcps_budget_init();

ret = core_kcps_adjust(cpu_get_id(), BASE_CPS_USAGE);
ret = core_kcps_adjust(0, BASE_CPS_USAGE);
if (ret < 0)
return ret;
ret = core_kcps_adjust(1, BASE_CPS_USAGE);
if (ret < 0)
return ret;
ret = core_kcps_adjust(2, BASE_CPS_USAGE);
if (ret < 0)
return ret;

Expand Down

0 comments on commit 75c65f5

Please sign in to comment.