@@ -13,7 +13,7 @@ static bool task_is_idle(struct rxe_task *task)
spin_lock_bh(&task->lock);
switch (task->state) {
- case TASK_STATE_START:
+ case TASK_STATE_IDLE:
task->state = TASK_STATE_BUSY;
spin_unlock_bh(&task->lock);
return true;
@@ -53,15 +53,15 @@ static void do_task(struct rxe_task *task)
spin_lock_bh(&task->lock);
switch (task->state) {
- case TASK_STATE_START:
+ case TASK_STATE_IDLE:
case TASK_STATE_BUSY:
if (ret) {
- task->state = TASK_STATE_START;
+ task->state = TASK_STATE_IDLE;
} else if (task->type == RXE_TASK_TYPE_INLINE ||
iterations--) {
cont = 1;
} else {
- task->state = TASK_STATE_START;
+ task->state = TASK_STATE_IDLE;
resched = true;
}
break;
@@ -94,7 +94,7 @@ static void disable_task(struct rxe_task *task)
static void enable_task(struct rxe_task *task)
{
spin_lock_bh(&task->lock);
- task->state = TASK_STATE_START;
+ task->state = TASK_STATE_IDLE;
spin_unlock_bh(&task->lock);
/* restart task in case */
@@ -110,7 +110,7 @@ static void cleanup_task(struct rxe_task *task)
do {
spin_lock_bh(&task->lock);
- idle = (task->state == TASK_STATE_START ||
+ idle = (task->state == TASK_STATE_IDLE ||
task->state == TASK_STATE_PAUSED);
spin_unlock_bh(&task->lock);
} while (!idle);
@@ -219,7 +219,7 @@ int rxe_init_task(struct rxe_task *task, void *arg, int (*func)(void *),
task->func = func;
task->destroyed = false;
task->type = type;
- task->state = TASK_STATE_START;
+ task->state = TASK_STATE_IDLE;
spin_lock_init(&task->lock);
@@ -23,7 +23,7 @@ enum rxe_task_type {
};
enum {
- TASK_STATE_START = 0,
+ TASK_STATE_IDLE = 0,
TASK_STATE_BUSY = 1,
TASK_STATE_ARMED = 2,
TASK_STATE_PAUSED = 3,