Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a534b679180025aa324ebd63c05516e478551cfd
Commit:     a534b679180025aa324ebd63c05516e478551cfd
Parent:     23d5ea5d3edcfe899cd91fca87a4af799bcc5794
Author:     Andi Kleen <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 6 16:59:52 2007 +0200
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Sep 10 18:57:47 2007 -0700

    x86_64: Remove CLFLUSH in text_poke()
    
    The CLFLUSH for the modified code line in text_poke was supposed
    to speed up CPU recovery. Unfortunately it seems to cause hangs
    on some VIA C3s (at least on VIA Esther Model 10 Stepping 9)
    Remove it.
    
    Thanks to Stefan Becker for reporting/testing.
    
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 arch/i386/kernel/alternative.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/i386/kernel/alternative.c b/arch/i386/kernel/alternative.c
index 9f4ac8b..bd72d94 100644
--- a/arch/i386/kernel/alternative.c
+++ b/arch/i386/kernel/alternative.c
@@ -445,8 +445,6 @@ void __kprobes text_poke(void *addr, unsigned char *opcode, 
int len)
 {
        memcpy(addr, opcode, len);
        sync_core();
-       /* Not strictly needed, but can speed CPU recovery up. Ignore cross 
cacheline
-          case. */
-       if (cpu_has_clflush)
-               asm("clflush (%0) " :: "r" (addr) : "memory");
+       /* Could also do a CLFLUSH here to speed up CPU recovery; but
+          that causes hangs on some VIA CPUs. */
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to