diff options
author | scottl <scottl@FreeBSD.org> | 2004-11-03 18:03:06 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2004-11-03 18:03:06 +0000 |
commit | f85ea86e71e72ebc1abc344fbcd7ab0caeb33ff4 (patch) | |
tree | 9b1cd1f736d7cd330912bc03f40b1712783bac4c | |
parent | f0fbc30e0dfc83a5c6603f34bc585944a923a608 (diff) | |
download | FreeBSD-src-f85ea86e71e72ebc1abc344fbcd7ab0caeb33ff4.zip FreeBSD-src-f85ea86e71e72ebc1abc344fbcd7ab0caeb33ff4.tar.gz |
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.
-rw-r--r-- | sys/amd64/amd64/intr_machdep.c | 6 | ||||
-rw-r--r-- | 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) |