utils/hectic: tell the driver about rtu{o/p/s} tasks starting in OOB wait
This commit is contained in:
parent
2d8f6b6956
commit
b6fa88473e
|
@ -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, ¶m->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, ¶m->swt);
|
||||
if (err) {
|
||||
perror("ioctl(EVL_HECIOC_REGISTER_UTASK)");
|
||||
|
|
Loading…
Reference in New Issue