diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-04-19 18:54:07 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-04-19 18:54:07 +0000 |
commit | 3b509950ceb7b447321109975cd684f00cf73222 (patch) | |
tree | 4aea83de5136436ef226e28fc7958cb5c636e5fc /sys/arch/sh/include/intr.h | |
parent | 00da0191a871a2352a51dd105e6824a88df82cb1 (diff) |
Mutexes for arm and sh softinterrupts.
ok miod@
Diffstat (limited to 'sys/arch/sh/include/intr.h')
-rw-r--r-- | sys/arch/sh/include/intr.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/sh/include/intr.h b/sys/arch/sh/include/intr.h index ce274d1245f..886494c6dd7 100644 --- a/sys/arch/sh/include/intr.h +++ b/sys/arch/sh/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.6 2009/03/25 21:40:56 miod Exp $ */ +/* $OpenBSD: intr.h,v 1.7 2009/04/19 18:54:06 oga Exp $ */ /* $NetBSD: intr.h,v 1.22 2006/01/24 23:51:42 uwe Exp $ */ /*- @@ -35,6 +35,7 @@ #include <sys/device.h> #include <sys/evcount.h> #include <sys/lock.h> +#include <sys/mutex.h> #include <sys/queue.h> #include <sh/psl.h> @@ -101,8 +102,10 @@ struct sh_soft_intrhand { }; struct sh_soft_intr { - TAILQ_HEAD(, sh_soft_intrhand) softintr_q; - unsigned long softintr_ipl; + TAILQ_HEAD(, sh_soft_intrhand) + softintr_q; + unsigned long softintr_ipl; + struct mutex softintr_lock; }; void softintr_disestablish(void *); |