Re: LinuxPPS low-level IRQs timestamps & ldisc

From: Alan Cox
Date: Mon Jun 02 2008 - 13:15:30 EST


> Of course if you have to check of the DCD changed, that may not be
> constant. A check for whether this device currently has anyone that
> wants the timestamp though should be a constant time.

Not having to take the cost of that for other users is far more important
than a time variance of a jump prediction. CPU cache effects alone will
add way more variance already. It's not a meaningful number to chase
compared to the randomness introduced by the IRQ handling itself.

If you want perfect accuracy do what IÂIT did years ago and use a card
which timestamps the physical IRQ bus transition and exposes it to the OS.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/