File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,8 +196,6 @@ enum task_state idc_do_cmd(void *data);
196196
197197void idc_cmd (struct idc_msg * msg );
198198
199- int idc_wait_in_blocking_mode (uint32_t target_core , bool (* cond )(int ));
200-
201199int idc_msg_status_get (uint32_t core );
202200
203201void idc_init_thread (void );
Original file line number Diff line number Diff line change @@ -72,35 +72,6 @@ int idc_msg_status_get(uint32_t core)
7272 return * (uint32_t * )payload -> data ;
7373}
7474
75- /**
76- * \brief Waits until status condition is true.
77- * \param[in] target_core Id of the core receiving the message.
78- * \param[in] cond Pointer to condition function.
79- * \return Error code.
80- */
81- int idc_wait_in_blocking_mode (uint32_t target_core , bool (* cond )(int ))
82- {
83- uint64_t deadline = sof_cycle_get_64 () + k_us_to_cyc_ceil64 (IDC_TIMEOUT );
84-
85- while (!cond (target_core )) {
86- /* spin here so other core can access IO and timers freely */
87- wait_delay (8192 );
88-
89- if (deadline < sof_cycle_get_64 ())
90- break ;
91- }
92-
93- /* safe check in case we've got preempted
94- * after read
95- */
96- if (cond (target_core ))
97- return 0 ;
98-
99- tr_err (& idc_tr , "idc_wait_in_blocking_mode() error: timeout, target_core %u" ,
100- target_core );
101- return - ETIME ;
102- }
103-
10475/**
10576 * \brief Executes IDC IPC processing message.
10677 */
Original file line number Diff line number Diff line change @@ -173,8 +173,6 @@ enum task_state idc_do_cmd(void *data);
173173
174174void idc_cmd (struct idc_msg * msg );
175175
176- int idc_wait_in_blocking_mode (uint32_t target_core , bool (* cond )(int ));
177-
178176int idc_msg_status_get (uint32_t core );
179177
180178void idc_init_thread (void );
Original file line number Diff line number Diff line change @@ -201,8 +201,6 @@ enum task_state idc_do_cmd(void *data);
201201
202202void idc_cmd (struct idc_msg * msg );
203203
204- int idc_wait_in_blocking_mode (uint32_t target_core , bool (* cond )(int ));
205-
206204int idc_msg_status_get (uint32_t core );
207205
208206int idc_init (void );
You can’t perform that action at this time.
0 commit comments