diff options
author | adrian <adrian@FreeBSD.org> | 2014-09-17 17:33:22 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2014-09-17 17:33:22 +0000 |
commit | e4c630d701457a59a7b76b8067a93963c9d59c21 (patch) | |
tree | 7e2ff0d278fcc66f4556254e21e1133c44550eca /sys/sys/interrupt.h | |
parent | 2c70c3b6e0b029f36b12df279a86ebd13355e2c9 (diff) | |
download | FreeBSD-src-e4c630d701457a59a7b76b8067a93963c9d59c21.zip FreeBSD-src-e4c630d701457a59a7b76b8067a93963c9d59c21.tar.gz |
Migrate ie->ie_assign_cpu and associated code to use an int for CPU rather
than u_char.
Migrate post_filter to use an int for a CPU rather than u_char.
Change intr_event_bind() to use an int for CPU rather than u_char.
It touches the ppc, sparc64, arm and mips machdep code but it should
(hah!) be a no-op.
Tested:
* i386, AMD64 laptops
Reviewed by: jhb
Diffstat (limited to 'sys/sys/interrupt.h')
-rw-r--r-- | sys/sys/interrupt.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h index 3dace82..c320e5f 100644 --- a/sys/sys/interrupt.h +++ b/sys/sys/interrupt.h @@ -112,13 +112,13 @@ struct intr_event { void (*ie_pre_ithread)(void *); void (*ie_post_ithread)(void *); void (*ie_post_filter)(void *); - int (*ie_assign_cpu)(void *, u_char); + int (*ie_assign_cpu)(void *, int); int ie_flags; int ie_count; /* Loop counter. */ int ie_warncnt; /* Rate-check interrupt storm warns. */ struct timeval ie_warntm; int ie_irq; /* Physical irq number if !SOFT. */ - u_char ie_cpu; /* CPU this event is bound to. */ + int ie_cpu; /* CPU this event is bound to. */ }; /* Interrupt event flags kept in ie_flags. */ @@ -161,11 +161,11 @@ u_char intr_priority(enum intr_type flags); int intr_event_add_handler(struct intr_event *ie, const char *name, driver_filter_t filter, driver_intr_t handler, void *arg, u_char pri, enum intr_type flags, void **cookiep); -int intr_event_bind(struct intr_event *ie, u_char cpu); +int intr_event_bind(struct intr_event *ie, int cpu); int intr_event_create(struct intr_event **event, void *source, int flags, int irq, void (*pre_ithread)(void *), void (*post_ithread)(void *), void (*post_filter)(void *), - int (*assign_cpu)(void *, u_char), const char *fmt, ...) + int (*assign_cpu)(void *, int), const char *fmt, ...) __printflike(9, 10); int intr_event_describe_handler(struct intr_event *ie, void *cookie, const char *descr); |