Hello,
I'm writing a linux kernel driver in order to control the 6 IRQs on the P1020.
My approach is to configure those IRqs in the device tree, to map them using irq_of_parse_and_map, to request them using request_irq
and to get the ISRs using the Read system call and the waitqueue. so far so good.
But I would like to configure the registers in order to set the priorities. Is the best approach to directly (atomic) write the PIC_EIVPR0...PIC_EIVPR6 registers?
is there any freescale approach to set the interrupt priorities on the QorIQ with Linux?
Thanks a lot for your reply
Solved! Go to Solution.
mpic_irq_set_priority()
Note that interrupts are disabled while running an interrupt handler, so this won't allow a high priority interrupt to preempt a low priority interrupt. It will still ensure that the highest priority interrupt is the next one to be processed after the current interrupt finishes.
mpic_irq_set_priority()
Note that interrupts are disabled while running an interrupt handler, so this won't allow a high priority interrupt to preempt a low priority interrupt. It will still ensure that the highest priority interrupt is the next one to be processed after the current interrupt finishes.
so how can i preempt a low priority interrupt??? i need it