Skip to content

zephyr: lib/cpu.h: remove dependency to platform layer - #9648

Merged
kv2019i merged 3 commits into
thesofproject:mainfrom
kv2019i:202411-plat-cpu-h-removal
Nov 13, 2024
Merged

zephyr: lib/cpu.h: remove dependency to platform layer#9648
kv2019i merged 3 commits into
thesofproject:mainfrom
kv2019i:202411-plat-cpu-h-removal

Conversation

@kv2019i

Copy link
Copy Markdown
Collaborator

b7598de platform: imx93_a55/imx95: remove lib/cpu.h
634bd11 platform: Intel: remove lib/cpu.h
198c718 zephyr: lib/cpu.h: remove dependency to platform layer

Link: #5794

Remove dependency to platform cpu.h layer for Zephyr targets. The lib/cpu.h
is now common to all SOF targets when building for Zephyr.
Add a note to PLATFORM_PRIMARY_CORE_ID documentation that "primary core"
is a SOF/application convention and not visible in Zephyr OS interfaces.
Core 0 is the boot core in Zephyr, so use this definition as
PLATFORM_PRIMARY_CORE_ID for all SOF targets. This was already the case
in all platform definitions, so no functional change.
In SOF, the primary/secondary distinction is primarily used
in IPC code, together with Zephyr CONFIG_SMP_BOOT_DELAY=y.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
cpu.h definition is no longer needed in platform definitions for
SOF Zephyr builds. Remove for all Intel targets.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Platform cpu.h no longer needed in Zephyr builds, so remove
these files as obsolete.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i

Copy link
Copy Markdown
CollaboratorAuthor

@thesofproject/nxp I left imx8 family out still from this PR as #9608 is open still.

@kv2019i

Copy link
Copy Markdown
CollaboratorAuthor

sof-docs fail and Intel LNL fails all known and tracked in https://github.com/thesofproject/sof/issues?q=is%3Aissue+is%3Aopen+label%3ACI

@kv2019i
kv2019i merged commit 429fa14 into thesofproject:mainNov 13, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@kv2019i@lyakh@lgirdwood@LaurentiuM1234@tmleman