aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2014-09-17 17:33:22 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2014-09-17 17:33:22 +0000
commit066da8050b58eb7fe87b444fc95489528b6a579b (patch)
tree7e2ff0d278fcc66f4556254e21e1133c44550eca /sys/kern/kern_intr.c
parent7fca1ad503477b8d5cc1fea27b7ab922977e6483 (diff)
downloadsrc-066da8050b58eb7fe87b444fc95489528b6a579b.tar.gz
src-066da8050b58eb7fe87b444fc95489528b6a579b.zip
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
Notes
Notes: svn path=/head/; revision=271712
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 25032f278c1d..6e9a4e8e48d2 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -249,7 +249,7 @@ intr_event_update(struct intr_event *ie)
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),
+ void (*post_filter)(void *), int (*assign_cpu)(void *, int),
const char *fmt, ...)
{
struct intr_event *ie;
@@ -292,7 +292,7 @@ intr_event_create(struct intr_event **event, void *source, int flags, int irq,
* the interrupt event.
*/
int
-intr_event_bind(struct intr_event *ie, u_char cpu)
+intr_event_bind(struct intr_event *ie, int cpu)
{
lwpid_t id;
int error;
@@ -1078,7 +1078,7 @@ intr_event_schedule_thread(struct intr_event *ie, struct intr_thread *it)
* a PIC.
*/
static int
-swi_assign_cpu(void *arg, u_char cpu)
+swi_assign_cpu(void *arg, int cpu)
{
return (0);