mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 23:46:09 +07:00
e683014c21
Historically a lot of these existed because we did not have a distinction between what was modular code and what was providing support to modules via EXPORT_SYMBOL and friends. That changed when we forked out support for the latter into the export.h file. This means we should be able to reduce the usage of module.h in code that is obj-y Makefile or bool Kconfig. The advantage in doing so is that module.h itself sources about 15 other headers; adding significantly to what we feed cpp, and it can obscure what headers we are effectively using. Since module.h was the source for init.h (for __init) and for export.h (for EXPORT_SYMBOL) we consider each obj-y/bool instance for the presence of either and replace as needed. Build testing revealed a couple implicit header usage issues that were fixed. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20160714001901.31603-5-paul.gortmaker@windriver.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
20 lines
322 B
C
20 lines
322 B
C
#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);
|
|
|
|
int wbinvd_on_all_cpus(void)
|
|
{
|
|
return on_each_cpu(__wbinvd, NULL, 1);
|
|
}
|
|
EXPORT_SYMBOL(wbinvd_on_all_cpus);
|