Skip to content

Commit

Permalink
west.yml: zephyr update to 0d2d06ffe1
Browse files Browse the repository at this point in the history
Cleans-up and refactoring of the implementation of clock switching in idle
thread.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
  • Loading branch information
tmleman committed Oct 17, 2023
1 parent 2b6ed18 commit eeadb4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ manifest:

- name: zephyr
repo-path: zephyr
revision: c48d98d556b74d75f3e3feda8e245a04d12af3e8
revision: 0d2d06ffe1804ea0e188dba6de934989540c4363
remote: thesofproject

# Import some projects listed in zephyr/west.yml@revision
Expand Down
3 changes: 3 additions & 0 deletions zephyr/lib/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ int cpu_enable_core(int id)

atomic_set(&start_flag, 1);

pm_policy_state_lock_get(PM_STATE_ACTIVE, 1);
return 0;
}

Expand Down Expand Up @@ -207,6 +208,8 @@ void cpu_disable_core(int id)

if (soc_adsp_halt_cpu(id) != 0)
tr_err(&zephyr_tr, "failed to disable core %d", id);
else
pm_policy_state_lock_put(PM_STATE_ACTIVE, 1);
#endif /* CONFIG_PM */
}

Expand Down
1 change: 1 addition & 0 deletions zephyr/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ int start_complete(void)
#if defined(CONFIG_PM)
pm_policy_state_lock_get(PM_STATE_RUNTIME_IDLE, PM_ALL_SUBSTATES);
pm_policy_state_lock_get(PM_STATE_SOFT_OFF, PM_ALL_SUBSTATES);
pm_policy_state_lock_get(PM_STATE_ACTIVE, 1);
#endif
return boot_complete();
}
Expand Down

0 comments on commit eeadb4a

Please sign in to comment.