Gabriele Filosofi wrote:
after having enabled an interrupt source with
/request_irq(gpio_to_irq(37)//, &irq_handler, IRQF_TRIGGER_FALLING,
//“//myirq//”//, NULL);/
how to prevent other interrupts (of the same type) to occour during
/irq_handl//er()/ processing?
I would like to disable the interrupt only for the /irq_handl//er()/
execution time.
i suppose you worry about reentrancy of your interrupt handler. in linux
interrupts don't need to be reentrant, the kernel guarantees that a same
handler isn't executed twice.
From Robert Loves' "Linux Kernel Development":
"By default, all interrupts are enabled except the interrupt lines of
any running handlers, which are masked out on all processors"
in case you want to disable all interrupts use the IRQF_DISABLED flag
(SA_INTERRUPT in older kernels)
best regards
begin:vcard
fn:Matthias Kaehlcke
n:Kaehlcke;Matthias
org:Electronic Engineering Solutions;Dept. de Software
adr:;;C/ Sant Ferran, 10-16 bajos;Barcelona;;08031;Spain
email;internet:[EMAIL PROTECTED]
title:Ingeniero de Firmware
tel;work:93 407 30 80
tel;fax:93 433 56 71
x-mozilla-html:FALSE
url:http://www.e2s.net
version:2.1
end:vcard
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source