]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86, cpu: mv display_cacheinfo -> cpu_detect_cache_sizes
authorBorislav Petkov <petkovbb@googlemail.com>
Sat, 21 Nov 2009 13:01:45 +0000 (14:01 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 23 Nov 2009 19:59:53 +0000 (11:59 -0800)
display_cacheinfo() doesn't display anything anymore and it is used to
detect CPU cache sizes. Rename it accordingly.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
LKML-Reference: <20091121130145.GA31357@liondog.tnic>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/centaur.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/cpu.h
arch/x86/kernel/cpu/cyrix.c
arch/x86/kernel/cpu/transmeta.c

index c910a716a71ce103b878154b24b2813917624716..7128b3799cecdd8c2f708124e1939c0686224511 100644 (file)
@@ -535,7 +535,7 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
                }
        }
 
-       display_cacheinfo(c);
+       cpu_detect_cache_sizes(c);
 
        /* Multi core CPU? */
        if (c->extended_cpuid_level >= 0x80000008) {
index c95e831bb0954d8c5c50520c27aa4c0e4819f548..e58d978e075824afd7ade02bea73775554a7e0c1 100644 (file)
@@ -294,7 +294,7 @@ static void __cpuinit init_c3(struct cpuinfo_x86 *c)
                set_cpu_cap(c, X86_FEATURE_REP_GOOD);
        }
 
-       display_cacheinfo(c);
+       cpu_detect_cache_sizes(c);
 }
 
 enum {
index 61242a56c2d6db7de1f788c97a68e22003a3042f..9bf845dc8055911445731e7f0f270d8811ee26d8 100644 (file)
@@ -61,7 +61,7 @@ void __init setup_cpu_local_masks(void)
 static void __cpuinit default_init(struct cpuinfo_x86 *c)
 {
 #ifdef CONFIG_X86_64
-       display_cacheinfo(c);
+       cpu_detect_cache_sizes(c);
 #else
        /* Not much we can do here... */
        /* Check if at least it has cpuid */
@@ -383,7 +383,7 @@ static void __cpuinit get_model_name(struct cpuinfo_x86 *c)
        }
 }
 
-void __cpuinit display_cacheinfo(struct cpuinfo_x86 *c)
+void __cpuinit cpu_detect_cache_sizes(struct cpuinfo_x86 *c)
 {
        unsigned int n, dummy, ebx, ecx, edx, l2size;
 
index 6de9a908e4008bf6d99e56cb8a9ef909b1f3949c..3624e8a0f71bf72e4c3cd86abcedfbb1c53d9b4d 100644 (file)
@@ -32,6 +32,6 @@ struct cpu_dev {
 extern const struct cpu_dev *const __x86_cpu_dev_start[],
                            *const __x86_cpu_dev_end[];
 
-extern void display_cacheinfo(struct cpuinfo_x86 *c);
+extern void cpu_detect_cache_sizes(struct cpuinfo_x86 *c);
 
 #endif
index 19807b89f058c3289dc0c5dfdb1d51a518f0a151..4fbd384fb645f19661ce7b98276c492bf9259297 100644 (file)
@@ -373,7 +373,7 @@ static void __cpuinit init_nsc(struct cpuinfo_x86 *c)
        /* Handle the GX (Formally known as the GX2) */
 
        if (c->x86 == 5 && c->x86_model == 5)
-               display_cacheinfo(c);
+               cpu_detect_cache_sizes(c);
        else
                init_cyrix(c);
 }
index bb62b3e5caadca0faba5e489fb874bf563e0073c..28000743bbb06984b0b7182caca09833fed756b9 100644 (file)
@@ -26,7 +26,7 @@ static void __cpuinit init_transmeta(struct cpuinfo_x86 *c)
 
        early_init_transmeta(c);
 
-       display_cacheinfo(c);
+       cpu_detect_cache_sizes(c);
 
        /* Print CMS and CPU revision */
        max = cpuid_eax(0x80860000);