Other platforms limit the number of times a given stray interrupt is
reported. Since the only error returned by intr_isrc_dispatch() is for
stray interrupts, returning the count instead makes sense.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 46025 Build 42914: arc lint + arc unit
Event Timeline
Comment Actions
Instead switch to returning stray count. This allows limiting the stray count reports (x86 and PPC report a maximum of 5). Seems a more useful return value (all callers compare with 0).
sys/kern/subr_intr.c | ||
---|---|---|
236 | Do you mean to return the post-increment value? |
Comment Actions
That would be an issue, so now adjusted. As I imagine you've noticed, I've got vague hopes of making intr_isrc_dispatch() and
intr_execute_handlers() match.
sys/kern/subr_intr.c | ||
---|---|---|
363 | maybe mention meaning of return value in comment? |