Commit f520256d authored by Anup Patel's avatar Anup Patel Committed by Anup Patel
Browse files

lib: sbi: Allow relaxed MMIO writes in device ipi_send() callback



Currently, we have a smp_wmb() between atomic_raw_set_bit() and
ipi_send() device callback whereas the MMIO writes done by the
device ipi_send() callback will also include a barrier.

We can avoid unnecessary/redundant barriers described above by
allowing relaxed MMIO writes in device ipi_send() callback. To
achieve this, we simply use  wmb() instead of smp_wmb() before
calling device ipi_send().

Signed-off-by: default avatarAnup Patel <apatel@ventanamicro.com>
Reported-by: default avatarBo Gan <ganboing@gmail.com>
parent 791704cd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment