Skip to content

Commit 52f00b0

Browse files
lrgirdwolgirdwood
authored andcommitted
intel: idc: remove unused function
Remove idc_wait_in_blocking_mode() as its no longer use with Zephyr based IDC. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent fb2182d commit 52f00b0

4 files changed

Lines changed: 0 additions & 35 deletions

File tree

posix/include/rtos/idc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ enum task_state idc_do_cmd(void *data);
196196

197197
void idc_cmd(struct idc_msg *msg);
198198

199-
int idc_wait_in_blocking_mode(uint32_t target_core, bool (*cond)(int));
200-
201199
int idc_msg_status_get(uint32_t core);
202200

203201
void idc_init_thread(void);

src/idc/idc.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff 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
*/

xtos/include/rtos/idc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ enum task_state idc_do_cmd(void *data);
173173

174174
void idc_cmd(struct idc_msg *msg);
175175

176-
int idc_wait_in_blocking_mode(uint32_t target_core, bool (*cond)(int));
177-
178176
int idc_msg_status_get(uint32_t core);
179177

180178
void idc_init_thread(void);

zephyr/include/rtos/idc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ enum task_state idc_do_cmd(void *data);
201201

202202
void idc_cmd(struct idc_msg *msg);
203203

204-
int idc_wait_in_blocking_mode(uint32_t target_core, bool (*cond)(int));
205-
206204
int idc_msg_status_get(uint32_t core);
207205

208206
int idc_init(void);

0 commit comments

Comments
 (0)