diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-04-15 20:52:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-04-15 20:52:58 +0000 |
commit | 41664536ca087a7e316bcdae0d145df6461e98f9 (patch) | |
tree | 2dc1e4e8dcdf69e57c75edf55963d67c98389fc8 /gnu | |
parent | 6c79978cbce731e6dd4f90352a13cdd25a500eeb (diff) |
More than a decade ago, interrupt handlers on sparc started returning 0
(interrupt was not for me), 1 (positive interrupt was for me), or -1
(i am not sure...). We have continued with this practice in as many
drivers as possible, throughout the tree.
This makes some of the architectures use that information in their
interrupt handler calling code -- if 1 is returned (and we know
this specific machine does not have edge-shared interrupts), we
finish servicing other possible handlers on the same pin. If the
interrupt pin remains asserted (from a different device), we will
end up back in the interrupt servicing code of course... but this is
cheaper than calling all the chained interrupts on a pin.
This does of course count on shared level interrupts being properly
sorted by IPL.
There have been some concerns about starvation of drivers which
incorrectly return 1. Those drivers should be hunted down so that
they return -1.
ok drahn
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions