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:
Scott Long 2004-11-03 18:03:06 +00:00
parent dee651eb15
commit 0971df6e14
2 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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)