diff options
| author | Anup Patel <[email protected]> | 2023-11-21 14:49:42 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-11-26 18:45:06 +0530 |
| commit | f520256d03da84e7ff8bddd084ef873192f46304 (patch) | |
| tree | b7903d467c55604303472f67190ffe8ab8a87b7f /platform | |
| parent | 791704cd09c019decf438f6e4f56423cc95cb66a (diff) | |
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: Anup Patel <[email protected]>
Reported-by: Bo Gan <[email protected]>
Diffstat (limited to 'platform')
0 files changed, 0 insertions, 0 deletions
