daemonize("kapmd");
- current->flags |= PF_IOTHREAD;
+ current->flags |= PF_NOFREEZE;
#ifdef CONFIG_SMP
/* 2002/08/01 - WT
* hence, it mustn't be stopped at all
* because it could be indirectly used during suspension
*/
- current->flags |= PF_IOTHREAD;
+ current->flags |= PF_NOFREEZE;
set_user_nice(current, -20);
serio_handle_events();
wait_event_interruptible(serio_wait, !list_empty(&serio_event_list));
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
} while (!signal_pending(current));
printk(KERN_DEBUG "serio: kseriod exiting\n");
wait_event_interruptible(thread->wqueue,
test_bit(THREAD_WAKEUP, &thread->flags));
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
clear_bit(THREAD_WAKEUP, &thread->flags);
timeout = interruptible_sleep_on_timeout (&tp->thr_wait, timeout);
/* make swsusp happy with our thread */
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
} while (!signal_pending (current) && (timeout > 0));
if (signal_pending (current)) {
/* make swsusp happy with our thread */
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
run_irda_queue();
}
write_reg(stir, REG_CTRL1, CTRL1_TXPWD|CTRL1_RXPWD);
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
if (change_speed(stir, stir->speed))
break;
/* make swsusp happy with our thread */
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
if (test_bit(JOB_DIE, &ai->flags))
break;
schedule();
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
if (!skt->thread)
break;
flush_signals(current);
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
if ((timeout < 0) || (ap->time_to_die))
daemonize("scsi_eh_%d", shost->host_no);
- current->flags |= PF_IOTHREAD;
+ current->flags |= PF_NOFREEZE;
shost->eh_wait = &sem;
shost->ehandler = current;
hub_events();
wait_event_interruptible(khubd_wait, !list_empty(&hub_event_list));
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
} while (!signal_pending(current));
pr_debug ("%s: khubd exiting\n", usbcore_name);
*/
daemonize("usb-storage");
- current->flags |= PF_IOTHREAD;
+ current->flags |= PF_NOFREEZE;
unlock_kernel();
*/
jbd_debug(1, "Now suspending kjournald\n");
spin_unlock(&journal->j_state_lock);
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
spin_lock(&journal->j_state_lock);
} else {
/*
}
if (current->flags & PF_FREEZE) {
spin_unlock_irq(&log_redrive_lock);
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
} else {
add_wait_queue(&jfs_IO_thread_wait, &wq);
set_current_state(TASK_INTERRUPTIBLE);
if (current->flags & PF_FREEZE) {
LAZY_UNLOCK(flags);
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
} else {
DECLARE_WAITQUEUE(wq, current);
if (current->flags & PF_FREEZE) {
TXN_UNLOCK();
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
} else {
DECLARE_WAITQUEUE(wq, current);
do {
/* swsusp */
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(xfs_flush_interval);
schedule_timeout(xfs_syncd_interval);
/* swsusp */
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
if (vfsp->vfs_flag & VFS_UMOUNT)
break;
if (vfsp->vfs_flag & VFS_RDONLY)
#define PF_FLUSHER 0x00002000 /* responsible for disk writeback */
#define PF_FREEZE 0x00004000 /* this task should be frozen for suspend */
-#define PF_IOTHREAD 0x00008000 /* this thread is needed for doing I/O to swap */
+#define PF_NOFREEZE 0x00008000 /* this thread should not be frozen */
#define PF_FROZEN 0x00010000 /* frozen for system suspend */
#define PF_FSTRANS 0x00020000 /* inside a filesystem transaction */
#define PF_KSWAPD 0x00040000 /* I am kswapd */
static inline int freezeable(struct task_struct * p)
{
if ((p == current) ||
- (p->flags & PF_IOTHREAD) ||
+ (p->flags & PF_NOFREEZE) ||
(p->state == TASK_ZOMBIE) ||
(p->state == TASK_DEAD) ||
(p->state == TASK_STOPPED))
migration_req_t *req;
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
spin_lock_irq(&rq->lock);
head = &rq->migration_queue;
static int ksoftirqd(void * __bind_cpu)
{
set_user_nice(current, 19);
- current->flags |= PF_IOTHREAD;
+ current->flags |= PF_NOFREEZE;
set_current_state(TASK_INTERRUPTIBLE);
struct k_sigaction sa;
sigset_t blocked;
- current->flags |= PF_IOTHREAD;
+ current->flags |= PF_NOFREEZE;
set_user_nice(current, -10);
schedule();
if (current->flags & PF_FREEZE) {
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
spin_lock_irq(&pdflush_lock);
continue;
}
struct page_state ps;
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
prepare_to_wait(&pgdat->kswapd_wait, &wait, TASK_INTERRUPTIBLE);
schedule();
finish_wait(&pgdat->kswapd_wait, &wait);
daemonize("kbnepd %s", dev->name);
set_user_nice(current, -15);
- current->flags |= PF_IOTHREAD;
+ current->flags |= PF_NOFREEZE;
set_fs(KERNEL_DS);
daemonize("kcmtpd_ctr_%d", session->num);
set_user_nice(current, -15);
- current->flags |= PF_IOTHREAD;
+ current->flags |= PF_NOFREEZE;
set_fs(KERNEL_DS);
daemonize("krfcommd");
set_user_nice(current, -10);
- current->flags |= PF_IOTHREAD;
+ current->flags |= PF_NOFREEZE;
set_fs(KERNEL_DS);
__rpc_schedule();
if (current->flags & PF_FREEZE) {
spin_unlock_bh(&rpc_queue_lock);
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
spin_lock_bh(&rpc_queue_lock);
}
schedule_timeout(timeout);
if (current->flags & PF_FREEZE)
- refrigerator(PF_IOTHREAD);
+ refrigerator(PF_FREEZE);
spin_lock_bh(&serv->sv_lock);
remove_wait_queue(&rqstp->rq_wait, &wait);