/* Set up a timer that expires after the etr_tolec + 1.6 seconds if one of the ports needs an update.  */
static void etr_set_tolec_timeout(unsigned long long now)
/* Set up a timer that expires after the etr_tolec + 1.6 seconds if one of the ports needs an update.  */
static void etr_set_tolec_timeout(unsigned long long now)
{
	unsigned long micros;
	if ((!etr_eacr.p0 || etr_port0_uptodate) &&
	    (!etr_eacr.p1 || etr_port1_uptodate))
		return;
	micros = (now > etr_tolec) ? ((now - etr_tolec) >> 12) : 0;
	micros = (micros > 1600000) ? 0 : 1600000 - micros;
	mod_timer(&etr_timer, jiffies + (micros * HZ) / 1000000 + 1);
}