int todo; unsigned long start_time; 
int todo; unsigned long start_time; 
int freeze_processes(void){       int todo;       unsigned long start_time;	struct task_struct *g, *p;		printk( "Stopping tasks: " );	start_time = jiffies;	do {		todo = 0;		read_lock(&tasklist_lock);		do_each_thread(g, p) {			unsigned long flags;			if (!freezeable(p))				continue;			if ((p->flags & PF_FROZEN) ||			    (p->state == TASK_TRACED) ||			    (p->state == TASK_STOPPED))				continue;			/* FIXME: smp problem here: we may not access other process' flags			   without locking */			p->flags |= PF_FREEZE;			spin_lock_irqsave(&p->sighand->siglock, flags);			signal_wake_up(p, 0);			spin_unlock_irqrestore(&p->sighand->siglock, flags);			todo++;		} while_each_thread(g, p);		read_unlock(&tasklist_lock);		yield();			/* Yield is okay here */		if (time_after(jiffies, start_time + TIMEOUT)) {			printk( "\n" );			printk(KERN_ERR " stopping tasks failed (%d tasks remaining)\n", todo );			return todo;		}	} while(todo);		printk( "|\n" );	BUG_ON(in_atomic());	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/3e1d1d28d99dabe63c64f7f40f1ca1d646de1f73/process.c/buggy/kernel/power/process.c