From: Manuel L. <ma...@ro...> - 2007-06-27 13:03:18
|
Howdy, On Wed, Jun 27, 2007 at 02:56:39PM +0200, EXTERNAL Brunner Markus (Praktikant; ST-FIR/Eng) wrote: > I have a question about the priority for the irqs. > I found that the priorities for the other CPUs, set in the setup-sh*.c > are set as followed: > low priority (2) for timers > low priority (3) for sci(f) > high priority (7) for dma > This doesn't make sens to me. I would give timers a high priority, so > they keep acurate and dma a low priority. > > Are there any rules for setting the priority for interrupts? I guess this depends on the application the system is intended for. I set DMABRG priority high on the SH7760 because audio needs them to be handled as soon as possible (especially if you want to do low-latency mixing and stuff [but that's impossible on the 7760 anyway ;-) ]) So I suggest you set priorities according to your specific needs. Manuel Lauss |