On Mon, 31 Mar 2025 17:49:07 -0700
Linus Torvalds <[email protected]> wrote:
> For example, just adding flush_dcache_range() into
> include/asm-generic/cacheflush.h should be more-or-less trivial, with
> the same kinds of "architectures can make clear they have their own
> optimized version".
Just so I'm clear. Are you suggesting to add flush_dcache_range() to
cacheflush.h and using that?
Looks like some of the code would be able to remove the ifdefs:
#ifdef CONFIG_PPC
flush_dcache_range(...);
#endif
if that's the case.
-- Steve