From f85ea86e71e72ebc1abc344fbcd7ab0caeb33ff4 Mon Sep 17 00:00:00 2001 From: scottl Date: Wed, 3 Nov 2004 18:03:06 +0000 Subject: 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. --- sys/amd64/amd64/intr_machdep.c | 6 +++--- sys/i386/i386/intr_machdep.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/amd64/amd64/intr_machdep.c b/sys/amd64/amd64/intr_machdep.c index 8524943..ea4bbdd 100644 --- a/sys/amd64/amd64/intr_machdep.c +++ b/sys/amd64/amd64/intr_machdep.c @@ -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) diff --git a/sys/i386/i386/intr_machdep.c b/sys/i386/i386/intr_machdep.c index 8524943..ea4bbdd 100644 --- a/sys/i386/i386/intr_machdep.c +++ b/sys/i386/i386/intr_machdep.c @@ -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) -- cgit v1.1