cache: sifive_ccache: Optimize cache flushes
authorSamuel Holland <samuel.holland@sifive.com>
Tue, 9 Sep 2025 22:41:27 +0000 (15:41 -0700)
committerConor Dooley <conor.dooley@microchip.com>
Thu, 11 Sep 2025 18:13:21 +0000 (19:13 +0100)
commit941327ca5ddd45cfc4dd960cbbabed9e2b5cb1b0
tree5de5229522d713a39c0d385d2148f28eb2f0f644
parent4fab69dd1fa52e28bb692afcb159fa8807d6d03f
cache: sifive_ccache: Optimize cache flushes

Fence instructions are required only at the beginning and the end of
a flush operation, not separately for each cache line being flushed.
Speed up cache flushes by about 15% by removing the extra fences.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/cache/sifive_ccache.c