On Thu, Feb 06, 2025, Tom Lendacky wrote: > On 1/27/25 19:53, Zheyun Shen wrote: > > At the moment open-coded calls to on_each_cpu_mask() are used when > > emulating wbinvd. A subsequent patch needs the same behavior and the > > helper prevents callers from preparing some idential parameters. > > > > Signed-off-by: Zheyun Shen <szy0127@xxxxxxxxxxx> > > Not sure if this wouldn't be better living in the same files that > wbinvd_on_all_cpus() lives, so I'll leave it up to the maintainers. It definitely belongs in arch/x86/lib/cache-smp.c.