Skip to content
Commit 9dc95021 authored by Anup Patel's avatar Anup Patel Committed by Atish Patra
Browse files

lib: More improvements to sbi_fifo



This patch does following improvements to sbi_fifo:
1. Use valid SBI_Exxxx error codes instead of -1
2. The sbi_fifo_is_full() and sbi_fifo_is_empty() did
   not acquire qlock before accessing head and tail
   hence fixed it
3. Added avail member for ease in debugging and simplifying
   head/tail updates.

Due to above changes size of sbi_fifo changes from 48 bytes
to 56 bytes.

Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
parent 6dc1b0f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment