Skip to content

Commit 9e6dea6

Browse files
committed
ipc: set IPC process task to lower priority
IPC process task priority should be lower than pipeline copy task. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
1 parent 459b70c commit 9e6dea6

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/include/sof/schedule.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ struct sof;
5656
#define TASK_PRI_MED 0
5757
#define TASK_PRI_HIGH -20
5858

59+
#define TASK_PRI_IPC 1
60+
5961
/* maximun task time slice in microseconds */
6062
#define SCHEDULE_TASK_MAX_TIME_SLICE 5000
6163

src/ipc/apl-ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ int platform_ipc_init(struct ipc *ipc)
199199

200200
/* schedule */
201201
schedule_task_init(&_ipc->ipc_task, ipc_process_task, _ipc);
202-
schedule_task_config(&_ipc->ipc_task, 0, 0);
202+
schedule_task_config(&_ipc->ipc_task, TASK_PRI_IPC, 0);
203203

204204
/* allocate page table buffer */
205205
iipc->page_table = rballoc(RZONE_SYS, SOF_MEM_CAPS_RAM,

src/ipc/byt-ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ int platform_ipc_init(struct ipc *ipc)
221221

222222
/* schedule */
223223
schedule_task_init(&_ipc->ipc_task, ipc_process_task, _ipc);
224-
schedule_task_config(&_ipc->ipc_task, 0, 0);
224+
schedule_task_config(&_ipc->ipc_task, TASK_PRI_IPC, 0);
225225

226226
/* allocate page table buffer */
227227
iipc->page_table = rzalloc(RZONE_SYS, SOF_MEM_CAPS_RAM,

src/ipc/cnl-ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ int platform_ipc_init(struct ipc *ipc)
201201

202202
/* schedule */
203203
schedule_task_init(&_ipc->ipc_task, ipc_process_task, _ipc);
204-
schedule_task_config(&_ipc->ipc_task, 0, 0);
204+
schedule_task_config(&_ipc->ipc_task, TASK_PRI_IPC, 0);
205205

206206
/* allocate page table buffer */
207207
iipc->page_table = rballoc(RZONE_SYS, SOF_MEM_CAPS_RAM,

src/ipc/hsw-ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ int platform_ipc_init(struct ipc *ipc)
216216

217217
/* schedule */
218218
schedule_task_init(&_ipc->ipc_task, ipc_process_task, _ipc);
219-
schedule_task_config(&_ipc->ipc_task, 0, 0);
219+
schedule_task_config(&_ipc->ipc_task, TASK_PRI_IPC, 0);
220220

221221
/* allocate page table buffer */
222222
iipc->page_table = rzalloc(RZONE_SYS, SOF_MEM_CAPS_RAM,

0 commit comments

Comments
 (0)