utils/hectic: tell the driver about rtu{o/p/s} tasks starting in OOB wait

This commit is contained in:
Philippe Gerum 2019-03-13 10:27:29 +01:00
parent 2d8f6b6956
commit b6fa88473e
1 changed files with 4 additions and 2 deletions

View File

@ -784,9 +784,10 @@ static int task_create(struct cpu_tasks *cpu,
pthread_attr_t attr;
int err;
param->swt.flags = 0;
switch(param->type) {
case RTK:
param->swt.flags = 0;
err = ioctl(cpu->fd, EVL_HECIOC_CREATE_KTASK, &param->swt);
if (err) {
perror("ioctl(EVL_HECIOC_CREATE_KTASK)");
@ -797,9 +798,10 @@ static int task_create(struct cpu_tasks *cpu,
case RTUP:
case RTUS:
case RTUO:
param->swt.flags = HECTIC_OOB_WAIT;
/* fallthrough wanted. */
case SLEEPER:
case SWITCHER:
param->swt.flags = 0;
err = ioctl(cpu->fd, EVL_HECIOC_REGISTER_UTASK, &param->swt);
if (err) {
perror("ioctl(EVL_HECIOC_REGISTER_UTASK)");