summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/intr_machdep.c6
-rw-r--r--sys/i386/i386/intr_machdep.c6
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)
OpenPOWER on IntegriCloud