mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
Drop wbinvd_on_all_cpus()'s return value; both the "real" version and the stub always return '0', and none of the callers check the return. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/20250522233733.3176144-3-seanjc@google.com
22 lines
378 B
C
22 lines
378 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <asm/paravirt.h>
|
|
#include <linux/smp.h>
|
|
#include <linux/export.h>
|
|
|
|
static void __wbinvd(void *dummy)
|
|
{
|
|
wbinvd();
|
|
}
|
|
|
|
void wbinvd_on_cpu(int cpu)
|
|
{
|
|
smp_call_function_single(cpu, __wbinvd, NULL, 1);
|
|
}
|
|
EXPORT_SYMBOL(wbinvd_on_cpu);
|
|
|
|
void wbinvd_on_all_cpus(void)
|
|
{
|
|
on_each_cpu(__wbinvd, NULL, 1);
|
|
}
|
|
EXPORT_SYMBOL(wbinvd_on_all_cpus);
|