mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't use atomic ops to increment interrupt stats. This was only done on
amd64 and i386 anyways. The stats are only kept for informational purposes.
This commit is contained in:
parent
dee651eb15
commit
0971df6e14
2 changed files with 6 additions and 6 deletions
|
|
@ -166,8 +166,8 @@ intr_execute_handlers(struct intsrc *isrc, struct intrframe *iframe)
|
|||
* argument for counting hardware interrupts when they're
|
||||
* processed too.
|
||||
*/
|
||||
atomic_add_long(isrc->is_count, 1);
|
||||
atomic_add_int(&cnt.v_intr, 1);
|
||||
(*isrc->is_count)++;
|
||||
cnt.v_intr++;
|
||||
|
||||
it = isrc->is_ithread;
|
||||
if (it == NULL)
|
||||
|
|
@ -219,7 +219,7 @@ intr_execute_handlers(struct intsrc *isrc, struct intrframe *iframe)
|
|||
error = ithread_schedule(it);
|
||||
}
|
||||
if (error == EINVAL) {
|
||||
atomic_add_long(isrc->is_straycount, 1);
|
||||
(*isrc->is_straycount)++;
|
||||
if (*isrc->is_straycount < MAX_STRAY_LOG)
|
||||
log(LOG_ERR, "stray irq%d\n", vector);
|
||||
else if (*isrc->is_straycount == MAX_STRAY_LOG)
|
||||
|
|
|
|||
|
|
@ -166,8 +166,8 @@ intr_execute_handlers(struct intsrc *isrc, struct intrframe *iframe)
|
|||
* argument for counting hardware interrupts when they're
|
||||
* processed too.
|
||||
*/
|
||||
atomic_add_long(isrc->is_count, 1);
|
||||
atomic_add_int(&cnt.v_intr, 1);
|
||||
(*isrc->is_count)++;
|
||||
cnt.v_intr++;
|
||||
|
||||
it = isrc->is_ithread;
|
||||
if (it == NULL)
|
||||
|
|
@ -219,7 +219,7 @@ intr_execute_handlers(struct intsrc *isrc, struct intrframe *iframe)
|
|||
error = ithread_schedule(it);
|
||||
}
|
||||
if (error == EINVAL) {
|
||||
atomic_add_long(isrc->is_straycount, 1);
|
||||
(*isrc->is_straycount)++;
|
||||
if (*isrc->is_straycount < MAX_STRAY_LOG)
|
||||
log(LOG_ERR, "stray irq%d\n", vector);
|
||||
else if (*isrc->is_straycount == MAX_STRAY_LOG)
|
||||
|
|
|
|||
Loading…
Reference in a new issue