mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
98da581e08
Move the MSR modification into new c functions. Removing it from the low level functions will allow us to avoid costly MSR writes by batching them up. Move the check_if_tm_restore_required() check into these new functions. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
40 lines
743 B
C
40 lines
743 B
C
#include <linux/ftrace.h>
|
|
#include <linux/mm.h>
|
|
|
|
#include <asm/processor.h>
|
|
#include <asm/switch_to.h>
|
|
#include <asm/cacheflush.h>
|
|
#include <asm/epapr_hcalls.h>
|
|
|
|
EXPORT_SYMBOL(flush_dcache_range);
|
|
EXPORT_SYMBOL(flush_icache_range);
|
|
|
|
EXPORT_SYMBOL(empty_zero_page);
|
|
|
|
long long __bswapdi2(long long);
|
|
EXPORT_SYMBOL(__bswapdi2);
|
|
|
|
#ifdef CONFIG_FUNCTION_TRACER
|
|
EXPORT_SYMBOL(_mcount);
|
|
#endif
|
|
|
|
#ifdef CONFIG_PPC_FPU
|
|
EXPORT_SYMBOL(load_fp_state);
|
|
EXPORT_SYMBOL(store_fp_state);
|
|
#endif
|
|
|
|
#ifdef CONFIG_ALTIVEC
|
|
EXPORT_SYMBOL(load_vr_state);
|
|
EXPORT_SYMBOL(store_vr_state);
|
|
#endif
|
|
|
|
#ifdef CONFIG_VSX
|
|
EXPORT_SYMBOL_GPL(__giveup_vsx);
|
|
#endif
|
|
|
|
#ifdef CONFIG_EPAPR_PARAVIRT
|
|
EXPORT_SYMBOL(epapr_hypercall_start);
|
|
#endif
|
|
|
|
EXPORT_SYMBOL(current_stack_pointer);
|