[Top] [All Lists]

Re: [PATCH] add dispatch_i8259_irq() to i8259.c

To: "Maciej W. Rozycki" <>
Subject: Re: [PATCH] add dispatch_i8259_irq() to i8259.c
From: Jun Sun <>
Date: Tue, 17 Dec 2002 13:40:11 -0800
Cc: Ralf Baechle <>,,
In-reply-to: <>; from on Tue, Dec 17, 2002 at 02:39:21PM +0100
Original-recipient: rfc822;
References: <> <>
User-agent: Mutt/1.2.5i
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:

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.


<Prev in Thread] Current Thread [Next in Thread>