Re: [PATCH v2 1/2] tracing: ring-buffer: Have the ring buffer code do the vmap of physical memory
From: Steven Rostedt
Date: Mon Mar 31 2025 - 21:35:26 EST
On Mon, 31 Mar 2025 17:49:07 -0700
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> 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