det = jiffies + (hertz / 100); while (time_before(jiffies, det)) { set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); if (signal_pending(current)) break; } 
msleep(10); 
static int ixj_ring(IXJ *j){	char cntr;	unsigned long jif, det;	j->flags.ringing = 1;	if (ixj_hookstate(j) & 1) {		ixj_ring_off(j);		j->flags.ringing = 0;		return 1;	}	det = 0;	for (cntr = 0; cntr < j->maxrings; cntr++) {		jif = jiffies + (1 * hertz);		ixj_ring_on(j);		while (time_before(jiffies, jif)) {			if (ixj_hookstate(j) & 1) {				ixj_ring_off(j);				j->flags.ringing = 0;				return 1;			}			set_current_state(TASK_INTERRUPTIBLE);			schedule_timeout(1);			if (signal_pending(current))				break;		}		jif = jiffies + (3 * hertz);		ixj_ring_off(j);		while (time_before(jiffies, jif)) {			if (ixj_hookstate(j) & 1) {				det = jiffies + (hertz / 100);				while (time_before(jiffies, det)) {					set_current_state(TASK_INTERRUPTIBLE);					schedule_timeout(1);					if (signal_pending(current))						break;				}				if (ixj_hookstate(j) & 1) {					j->flags.ringing = 0;					return 1;				}			}			set_current_state(TASK_INTERRUPTIBLE);			schedule_timeout(1);			if (signal_pending(current))				break;		}	}	ixj_ring_off(j);	j->flags.ringing = 0;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/f4c9925ccc185da68c2d42230711d017f222e420/ixj.c/buggy/drivers/telephony/ixj.c