schedule_timeout (POOL_TIMEOUT_JIFFIES);
- current->state = TASK_RUNNING;
remove_wait_queue (&pool->waitq, &wait);
goto restart;
}
/* Run one more char cycle */
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(char_time * 5);
- current->state = TASK_RUNNING;
#ifdef CY_DEBUG_WAIT_UNTIL_SENT
printk("Clean (jiff=%lu)...done\n", jiffies);
#endif
if (len > 0) {
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(len);
- set_current_state(TASK_RUNNING);
}
}
rio_dprintk (RIO_DEBUG_DELAY, "delaying %d jiffies\n", njiffies);
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(njiffies);
- current->state = TASK_RUNNING;
func_exit();
if (signal_pending(current))
rio_dprintk (RIO_DEBUG_DELAY, "delaying %d jiffies (ni)\n", njiffies);
current->state = TASK_UNINTERRUPTIBLE;
schedule_timeout(njiffies);
- current->state = TASK_RUNNING;
func_exit();
return !RIO_FAIL;
}
if (len > 0) {
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(len);
- current->state = TASK_RUNNING;
}
}
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(POLL_INTERVAL);
- current->state = TASK_RUNNING;
if (signal_pending(current))
break;
for (;;) {
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(poll_interval);
- current->state = TASK_RUNNING;
if(signal_pending(current))
break;
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(HZ);
- current->state = TASK_RUNNING;
}
kenvctrld_task = NULL;
}
if (state->close_delay) {
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(state->close_delay);
- set_current_state(TASK_RUNNING);
}
} else if (!uart_console(port)) {
uart_change_pm(state, 3);
LCCR0 &= ~LCCR0_LEN; /* Disable LCD Controller */
schedule_timeout(20 * HZ / 1000);
- set_current_state(TASK_RUNNING);
remove_wait_queue(&fbi->ctrlr_wait, &wait);
}
dprintk("nfsd: write defer %d\n", current->pid);
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout((HZ+99)/100);
- current->state = TASK_RUNNING;
dprintk("nfsd: write resume %d\n", current->pid);
}
spin_unlock_irq(&runtime->lock);
set_current_state(TASK_INTERRUPTIBLE);
timeout = schedule_timeout(30 * HZ);
- set_current_state(TASK_RUNNING);
remove_wait_queue(&runtime->sleep, &wait);
if (signal_pending(current))
return result > 0 ? result : -ERESTARTSYS;
spin_unlock_irq(&runtime->lock);
set_current_state(TASK_INTERRUPTIBLE);
timeout = schedule_timeout(30 * HZ);
- set_current_state(TASK_RUNNING);
remove_wait_queue(&runtime->sleep, &wait);
if (signal_pending(current))
return result > 0 ? result : -ERESTARTSYS;
break;
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1);
- set_current_state(TASK_RUNNING);
} while (--timeout > 0);
if (alive)
snd_printk(KERN_ERR "timeout: still %d active urbs..\n", alive);