powerpc/44x: declare tlb_44x_index for use in C code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, January 2, 2009 - 2:02 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c0ca60...
Commit:     c0ca609c5f874f7d6ae8e180afe79317e1943d22
Parent:     891686188f69d330f7eeeec8e6642ccfb7453106
Author:     Hollis Blanchard <hollisb@us.ibm.com>
AuthorDate: Tue Dec 2 15:51:54 2008 -0600
Committer:  Avi Kivity <avi@redhat.com>
CommitDate: Wed Dec 31 16:55:09 2008 +0200

    powerpc/44x: declare tlb_44x_index for use in C code
    
    KVM currently ignores the host's round robin TLB eviction selection, instead
    maintaining its own TLB state and its own round robin index. However, by
    participating in the normal 44x TLB selection, we can drop the alternate TLB
    processing in KVM. This results in a significant performance improvement,
    since that processing currently must be done on *every* guest exit.
    
    Accordingly, KVM needs to be able to access and increment tlb_44x_index.
    (KVM on 440 cannot be a module, so there is no need to export this symbol.)
    
    Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
    Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
    Signed-off-by: Avi Kivity <avi@redhat.com>
---
 arch/powerpc/include/asm/mmu-44x.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/include/asm/mmu-44x.h b/arch/powerpc/include/asm/mmu-44x.h
index 8a97cfb..27cc6fd 100644
--- a/arch/powerpc/include/asm/mmu-44x.h
+++ b/arch/powerpc/include/asm/mmu-44x.h
@@ -56,6 +56,7 @@
 #ifndef __ASSEMBLY__
 
 extern unsigned int tlb_44x_hwater;
+extern unsigned int tlb_44x_index;
 
 typedef struct {
 	unsigned int	id;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
powerpc/44x: declare tlb_44x_index for use in C code, Linux Kernel Mailing ..., (Fri Jan 2, 2:02 pm)