diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-03-01 20:36:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-03-01 20:36:33 +0000 |
commit | 96d804cf360cd21978df6f8bfd530fd870b4f21c (patch) | |
tree | dbcc3a2ae0372049272b801a82cf12bcdad526b4 /sys/arch/amd64 | |
parent | d8379893aec76ec3618e6c73603c10c8565bfa85 (diff) |
Set the user data of interrupt counters to the interrupt vector number used
for the interrupt. Makes the vmstat -i output similar to what we see on
i386.
ok deraadt@, krw@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/intr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/intr.c b/sys/arch/amd64/amd64/intr.c index b13541fc3bf..794233f1419 100644 --- a/sys/arch/amd64/amd64/intr.c +++ b/sys/arch/amd64/amd64/intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.c,v 1.23 2009/08/22 02:54:50 mk Exp $ */ +/* $OpenBSD: intr.c,v 1.24 2010/03/01 20:36:32 kettenis Exp $ */ /* $NetBSD: intr.c,v 1.3 2003/03/03 22:16:20 fvdl Exp $ */ /* @@ -444,8 +444,7 @@ intr_establish(int legacy_irq, struct pic *pic, int pin, int type, int level, ih->ih_pin = pin; ih->ih_cpu = ci; ih->ih_slot = slot; - evcount_attach(&ih->ih_count, what, (void *)&ih->ih_pin, - &evcount_intr); + evcount_attach(&ih->ih_count, what, &source->is_idtvec, &evcount_intr); *p = ih; |