Re: [PATCH] LoongArch: jump_label: Batch icache maintenance
From: Huacai Chen
Date: Thu Feb 19 2026 - 07:42:04 EST
On Thu, Feb 19, 2026 at 6:21 PM Xi Ruoyao <xry111@xxxxxxxxxxx> wrote:
>
> On Thu, 2026-02-19 at 11:44 +0800, Huacai Chen wrote:
> > > +static inline void local_flush_icache_range(unsigned long start,
> > > unsigned long end)
> > > +{
> > > + local_flush_icache_all();
> > Just use a plain "asm volatile ("\tibar 0\n"::);", and put them after
> > __flush_cache_all().
>
> IMO for consistency it should be "ibar\t0" (without the leading \t and
> trailing \n: we don't have those in any of other inline assemblies).
Leading \t should be removed, but trailing \n can be kept (\t is also OK).
Huacai
>
> --
> Xi Ruoyao <xry111@xxxxxxxxxxx>