Re: [PATCH] mips: micro-optimize calculate_cpu_foreign_map()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 30, 2022 at 07:59:04PM -0700, Yury Norov wrote:
> On Tue, Jun 21, 2022 at 07:47:29AM -0700, Yury Norov wrote:
> > The inner loop in calculate_cpu_foreign_map() walks the whole
> > cpumask to check if we have siblings for a given cpu.
> > 
> > We can just break after a 1st match and avoid useless traversing
> > the rest of mask.
> > 
> > Loongarch has an identical function, so fix it here as well.
> > 
> > Signed-off-by: Yury Norov <yury.norov@xxxxxxxxx>
> 
> Ping?

as this is touching two different archs, it would have been easier
to send this in two different patches.

Huacai, should I take the patch ?

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]



[Index of Archives]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux