diff options
author | Anup Patel <anup.patel@broadcom.com> | 2017-08-01 13:35:53 +0300 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2017-08-31 06:09:03 +0300 |
commit | 1f7466c6b428fa52504e85c2df43aa8641f9294e (patch) | |
tree | c88a077d8702a59bede6083da96d059522badb22 /drivers/mailbox/hi6220-mailbox.c | |
parent | 6d2061b981af165d3e45462e0804b5a1f2f4c7bc (diff) | |
download | linux-1f7466c6b428fa52504e85c2df43aa8641f9294e.tar.xz |
mailbox: bcm-flexrm-mailbox: Use bitmap instead of IDA
Currently, we are using IDA library for managing IDs
on a FlexRM ring. The IDA library dynamically allocates
memory for underlying data structures which can cause
potential locking issue when allocating/free IDs from
flexrm_new_request() and flexrm_process_completions().
To tackle this, we replace use of IDA with bitmap for
each FlexRM ring and also protect the bitmap with FlexRM
ring lock.
Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox/hi6220-mailbox.c')
0 files changed, 0 insertions, 0 deletions