diff options
author | Ohad Ben-Cohen <ohad@wizery.com> | 2010-05-05 11:33:09 -0400 |
---|---|---|
committer | Hiroshi DOYU <Hiroshi.DOYU@nokia.com> | 2010-08-04 08:50:17 -0400 |
commit | b5bebe410204cf84337b54c372cceda2d6b27de6 (patch) | |
tree | ef64f9a9836c05d21c7e65d6d6429beb174956a6 /arch/arm/plat-omap/include/plat/mailbox.h | |
parent | 01072d8f4b9911047ef435a807cfd7223c94d94d (diff) |
omap: mailbox: convert block api to kfifo
The underlying buffering implementation of mailbox
is converted from block API to kfifo due to the simplicity
and speed of kfifo.
The default size of the kfifo buffer is set to 256 bytes.
This value is configurable at compile time (via
CONFIG_OMAP_MBOX_KFIFO_SIZE), and can be changed at
runtime (via the mbox_kfifo_size module parameter).
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/mailbox.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/mailbox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/include/plat/mailbox.h b/arch/arm/plat-omap/include/plat/mailbox.h index 729166b76a7c..0c3c4a5f4b42 100644 --- a/arch/arm/plat-omap/include/plat/mailbox.h +++ b/arch/arm/plat-omap/include/plat/mailbox.h | |||
@@ -5,8 +5,8 @@ | |||
5 | 5 | ||
6 | #include <linux/wait.h> | 6 | #include <linux/wait.h> |
7 | #include <linux/workqueue.h> | 7 | #include <linux/workqueue.h> |
8 | #include <linux/blkdev.h> | ||
9 | #include <linux/interrupt.h> | 8 | #include <linux/interrupt.h> |
9 | #include <linux/kfifo.h> | ||
10 | 10 | ||
11 | typedef u32 mbox_msg_t; | 11 | typedef u32 mbox_msg_t; |
12 | struct omap_mbox; | 12 | struct omap_mbox; |
@@ -42,7 +42,7 @@ struct omap_mbox_ops { | |||
42 | 42 | ||
43 | struct omap_mbox_queue { | 43 | struct omap_mbox_queue { |
44 | spinlock_t lock; | 44 | spinlock_t lock; |
45 | struct request_queue *queue; | 45 | struct kfifo fifo; |
46 | struct work_struct work; | 46 | struct work_struct work; |
47 | struct tasklet_struct tasklet; | 47 | struct tasklet_struct tasklet; |
48 | int (*callback)(void *); | 48 | int (*callback)(void *); |