1 #include <linux/linkage.h>
2 #include <asm/cpufeatures.h>
3 #include <asm/alternative-asm.h>
4 #include <asm/export.h>
7 * Most CPUs support enhanced REP MOVSB/STOSB instructions. It is
8 * recommended to use this when possible and we do use them by default.
9 * If enhanced REP MOVSB/STOSB is not available, try to use fast string.
10 * Otherwise, use original.
22 ENDPROC(clear_page_rep)
23 EXPORT_SYMBOL_GPL(clear_page_rep)
25 ENTRY(clear_page_orig)
31 #define PUT(x) movq %rax,x*8(%rdi)
44 ENDPROC(clear_page_orig)
45 EXPORT_SYMBOL_GPL(clear_page_orig)
47 ENTRY(clear_page_erms)
52 ENDPROC(clear_page_erms)
53 EXPORT_SYMBOL_GPL(clear_page_erms)