set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); 
schedule_timeout_interruptible(1); 
static int get_wait_data(struct cosa_data *cosa){	int retries = 1000;	while (--retries) {		/* read data and return them */		if (cosa_getstatus(cosa) & SR_RX_RDY) {			short r;			r = cosa_getdata8(cosa);#if 0			printk(KERN_INFO "cosa: get_wait_data returning after %d retries\n", 999-retries);#endif			return r;		}		/* sleep if not ready to read */		set_current_state(TASK_INTERRUPTIBLE);		schedule_timeout(1);	}	printk(KERN_INFO "cosa: timeout in get_wait_data (status 0x%x)\n",		cosa_getstatus(cosa));	return -1;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/3173c8907ffb2c64456142da3df2bd0500bd59e0/cosa.c/buggy/drivers/net/wan/cosa.c