[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ac56999b-eb41-47a6-bd7b-d5880bcc646b@nvidia.com>
Date: Wed, 14 May 2025 13:03:51 -0700
From: Fenghua Yu <fenghuay@...dia.com>
To: James Morse <james.morse@....com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Cc: Reinette Chatre <reinette.chatre@...el.com>,
Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>, H Peter Anvin <hpa@...or.com>,
Babu Moger <Babu.Moger@....com>, shameerali.kolothum.thodi@...wei.com,
D Scott Phillips OS <scott@...amperecomputing.com>,
carl@...amperecomputing.com, lcherian@...vell.com,
bobo.shaobowang@...wei.com, tan.shaopeng@...itsu.com,
baolin.wang@...ux.alibaba.com, Jamie Iles <quic_jiles@...cinc.com>,
Xin Hao <xhao@...ux.alibaba.com>, peternewman@...gle.com,
dfustini@...libre.com, amitsinght@...vell.com,
David Hildenbrand <david@...hat.com>, Rex Nie <rex.nie@...uarmicro.com>,
Dave Martin <dave.martin@....com>, Koba Ko <kobak@...dia.com>,
Shanker Donthineni <sdonthineni@...dia.com>,
"Yury Norov [NVIDIA]" <yury.norov@...il.com>,
Shaopeng Tan <tan.shaopeng@...fujitsu.com>
Subject: Re: [PATCH v11 04/30] x86/resctrl: Optimize
cpumask_any_housekeeping()
On 5/13/25 10:15, James Morse wrote:
> From: "Yury Norov [NVIDIA]" <yury.norov@...il.com>
>
> With the lack of cpumask_any_andnot_but(), cpumask_any_housekeeping()
> has to abuse cpumask_nth() functions.
>
> Update cpumask_any_housekeeping() to use the new cpumask_any_but()
> and cpumask_any_andnot_but(). These two functions understand
> RESCTRL_PICK_ANY_CPU, which simplifies cpumask_any_housekeeping()
> significantly.
>
> Tested-by: James Morse <james.morse@....com>
> Tested-by: Shaopeng Tan <tan.shaopeng@...fujitsu.com>
> Reviewed-by: James Morse <james.morse@....com>
> Reviewed-by: Reinette Chatre <reinette.chatre@...el.com>
> Reviewed-by: Shaopeng Tan <tan.shaopeng@...fujitsu.com>
> Signed-off-by: Yury Norov [NVIDIA] <yury.norov@...il.com>
> Signed-off-by: James Morse <james.morse@....com>
Reviewed-by: Fenghua Yu <fenghuay@...dia.com>
Thanks.
-Fenghua
Powered by blists - more mailing lists