On Tue, Dec 17, 2002 at 02:39:21PM +0100, Maciej W. Rozycki wrote: > > No MIPS boards are using do_slow_gettimeoffset(). We really should get > > rid of it. > > I know none does at the moment. But are you sure there is no system that > would need it and might be supported one day? > I serisouly don't think so. Moving forward every CPU will have a CPU counter, which can be used for timeoffset purpose. Even if it does not have one, it will surely have some onboard high resolution timer, which can be used to intra-jiffy offset purpose. Anyway, this function is only defined in old-time.c, which will go away soon (hopefully). :-) > Here is an example (untested) code that I would recommend. It sends > explicit ACKs to the i8259As, which has the following advantages: > <snip> Cool. This code works for me. I studied it a little bit and I am convinced it is a better choice. It should work for MIPS in general. In my original code I did verify that the IRR bit is not cleared, which apparently will be a problem in cases. The only catch with your code is that we don't have iob() macro (which apparently is very useful). Any suggestions on this? Otherwise I will probably remove it. Jun