2121#include <rtos/cache.h>
2222#include <sof/lib/cpu.h>
2323#include <sof/lib/mailbox.h>
24- #include <sof/lib/memory.h>
2524#include <sof/list.h>
2625#include <sof/platform.h>
2726#include <rtos/sof.h>
3837
3938LOG_MODULE_DECLARE (ipc , CONFIG_SOF_LOG_LEVEL );
4039
41- __cold static bool valid_ipc_buffer_desc (const struct sof_ipc_buffer * desc )
40+ static bool valid_ipc_buffer_desc (const struct sof_ipc_buffer * desc )
4241{
43- assert_can_be_cold ();
44-
4542 if (desc -> caps >= SOF_MEM_CAPS_LOWEST_INVALID )
4643 return false;
4744
@@ -50,12 +47,10 @@ __cold static bool valid_ipc_buffer_desc(const struct sof_ipc_buffer *desc)
5047}
5148
5249/* create a new component in the pipeline */
53- __cold struct comp_buffer * buffer_new (const struct sof_ipc_buffer * desc , bool is_shared )
50+ struct comp_buffer * buffer_new (const struct sof_ipc_buffer * desc , bool is_shared )
5451{
5552 struct comp_buffer * buffer ;
5653
57- assert_can_be_cold ();
58-
5954 tr_info (& buffer_tr , "buffer new size 0x%x id %d.%d flags 0x%x" ,
6055 desc -> size , desc -> comp .pipeline_id , desc -> comp .id , desc -> flags );
6156
@@ -80,7 +75,6 @@ __cold struct comp_buffer *buffer_new(const struct sof_ipc_buffer *desc, bool is
8075 return buffer ;
8176}
8277
83- /* Called from multiple locations, including ipc_get_comp_by_ppl_id(), so cannot be cold */
8478int32_t ipc_comp_pipe_id (const struct ipc_comp_dev * icd )
8579{
8680 switch (icd -> type ) {
@@ -183,11 +177,9 @@ int comp_verify_params(struct comp_dev *dev, uint32_t flag,
183177}
184178EXPORT_SYMBOL (comp_verify_params );
185179
186- __cold int comp_buffer_connect (struct comp_dev * comp , uint32_t comp_core ,
187- struct comp_buffer * buffer , uint32_t dir )
180+ int comp_buffer_connect (struct comp_dev * comp , uint32_t comp_core ,
181+ struct comp_buffer * buffer , uint32_t dir )
188182{
189- assert_can_be_cold ();
190-
191183 /* check if it's a connection between cores */
192184 if (buffer -> core != comp_core ) {
193185#if CONFIG_INCOHERENT
@@ -266,15 +258,13 @@ int ipc_pipeline_complete(struct ipc *ipc, uint32_t comp_id)
266258 ipc_ppl_sink -> cd );
267259}
268260
269- __cold int ipc_comp_free (struct ipc * ipc , uint32_t comp_id )
261+ int ipc_comp_free (struct ipc * ipc , uint32_t comp_id )
270262{
271263 struct ipc_comp_dev * icd ;
272264 struct comp_buffer * buffer ;
273265 struct comp_buffer * safe ;
274266 uint32_t flags ;
275267
276- assert_can_be_cold ();
277-
278268 /* check whether component exists */
279269 icd = ipc_get_comp_by_id (ipc , comp_id );
280270 if (!icd ) {
0 commit comments