Skip to content

Commit

Permalink
platform: ace: watchdog: fix num cpus
Browse files Browse the repository at this point in the history
This will fix num cpus and use runtime data to work
properly on diffrent HW configs

Signed-off-by: Adrian Bonislawski <[email protected]>
  • Loading branch information
abonislawski authored and kv2019i committed Nov 3, 2023
1 parent 9e080af commit 1c2a2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/intel/ace/lib/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void watchdog_init(void)
return;
}

for (i = 0; i < CONFIG_CORE_COUNT; i++)
for (i = 0; i < arch_num_cpus(); i++)
intel_adsp_watchdog_pause(watchdog, i);

ret = wdt_setup(watchdog, 0);
Expand Down

0 comments on commit 1c2a2e3

Please sign in to comment.