Skip to content

Commit

Permalink
init: move several functions to DRAM
Browse files Browse the repository at this point in the history
Move several initialisation functions to run from DRAM directly.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
  • Loading branch information
lyakh committed Feb 21, 2025
1 parent a895eb2 commit c7f6a7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/init/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static int secondary_core_restore(void)

#endif

int secondary_core_init(struct sof *sof)
__cold int secondary_core_init(struct sof *sof)
{
int err;
struct ll_schedule_domain *dma_domain;
Expand Down Expand Up @@ -237,7 +237,7 @@ int secondary_core_init(struct sof *sof)

#endif

static void print_version_banner(void)
__cold static void print_version_banner(void)
{
/*
* Non-Zephyr builds emit the version banner in DMA-trace
Expand Down Expand Up @@ -267,7 +267,7 @@ static log_timestamp_t default_get_timestamp(void)
}
#endif

static int primary_core_init(int argc, char *argv[], struct sof *sof)
__cold static int primary_core_init(int argc, char *argv[], struct sof *sof)
{
/* setup context */
sof->argc = argc;
Expand Down
4 changes: 2 additions & 2 deletions src/platform/intel/ace/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static const struct sof_ipc_fw_ready ready
.flags = DEBUG_SET_FW_READY_FLAGS,
};

int platform_boot_complete(uint32_t boot_message)
__cold int platform_boot_complete(uint32_t boot_message)
{
struct ipc_cmd_hdr header;

Expand All @@ -84,7 +84,7 @@ static struct pm_notifier pm_state_notifier = {
#endif

/* Runs on the primary core only */
int platform_init(struct sof *sof)
__cold int platform_init(struct sof *sof)
{
int ret;

Expand Down

0 comments on commit c7f6a7a

Please sign in to comment.