diff options
author | jhb <jhb@FreeBSD.org> | 2006-12-12 19:20:19 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-12-12 19:20:19 +0000 |
commit | 65d8bd30a00681cb5864698d05bd24395da41546 (patch) | |
tree | 2a56d1c14d9905ef1ad0f8b926479b9ef783dcfb /sys/amd64 | |
parent | 7106027433bd2e711f844be45f587f6f2f7556cf (diff) | |
download | FreeBSD-src-65d8bd30a00681cb5864698d05bd24395da41546.zip FreeBSD-src-65d8bd30a00681cb5864698d05bd24395da41546.tar.gz |
Add a function to return the MD interrupt source cookie associated with
an interrupt event. Use this in the x86 code to fixup the intrcnt names
when an interrupt handler is removed.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/intr_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/intr_machdep.c b/sys/amd64/amd64/intr_machdep.c index da6ca17..a3db90d 100644 --- a/sys/amd64/amd64/intr_machdep.c +++ b/sys/amd64/amd64/intr_machdep.c @@ -190,13 +190,13 @@ intr_add_handler(const char *name, int vector, driver_intr_t handler, int intr_remove_handler(void *cookie) { + struct intsrc *isrc; int error; + isrc = intr_handler_source(cookie); error = intr_event_remove_handler(cookie); -#ifdef XXX if (error == 0) - intrcnt_updatename(/* XXX */); -#endif + intrcnt_updatename(isrc); return (error); } |