Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / arch / x86_64 / lib / clear_page.S
index 30a9da4..1f81b79 100644 (file)
@@ -10,7 +10,7 @@ clear_page:
        .p2align 4
 .Lloop:
        decl    %ecx
-#define PUT(x) movq %rax,x*8(%rdi) 
+#define PUT(x) movq %rax,x*8(%rdi)
        movq %rax,(%rdi)
        PUT(1)
        PUT(2)
@@ -23,19 +23,19 @@ clear_page:
        jnz     .Lloop
        nop
        ret
-clear_page_end:        
-       
-       /* C stepping K8 run faster using the string instructions.
+clear_page_end:
+
+       /* Some CPUs run faster using the string instructions.
           It is also a lot simpler. Use this when possible */
-       
+
 #include <asm/cpufeature.h>
-               
+
        .section .altinstructions,"a"
        .align 8
        .quad  clear_page
        .quad  clear_page_c
-       .byte  X86_FEATURE_K8_C
-       .byte  clear_page_end-clear_page        
+       .byte  X86_FEATURE_REP_GOOD
+       .byte  clear_page_end-clear_page
        .byte  clear_page_c_end-clear_page_c
        .previous