diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-01-30 07:34:08 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:34:08 -0500 |
commit | af1e6844d60057774910a2d08bd75b67d73ba7d5 (patch) | |
tree | 88a2527769b81fb70e80ad15577b04bd3b2442ad /arch | |
parent | 57a6a46aa26d6e39c62daf8b3b96e94f76e6846f (diff) |
x86: cpa: rename global_flush_tlb() to cpa_flush_all()
The function name global_flush_tlb() suggests something different from
what the function really does. Rename it to cpa_flush_all(), which is an
understandable counterpart to cpa_flush_range().
no global visibility of the old API anymore.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/mm/pageattr-test.c | 4 | ||||
-rw-r--r-- | arch/x86/mm/pageattr.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c index 4e8b8c6baccd..554820265b95 100644 --- a/arch/x86/mm/pageattr-test.c +++ b/arch/x86/mm/pageattr-test.c | |||
@@ -183,7 +183,7 @@ static __init int exercise_pageattr(void) | |||
183 | 183 | ||
184 | } | 184 | } |
185 | vfree(bm); | 185 | vfree(bm); |
186 | global_flush_tlb(); | 186 | cpa_flush_all(); |
187 | 187 | ||
188 | failed += print_split(&sb); | 188 | failed += print_split(&sb); |
189 | 189 | ||
@@ -211,7 +211,7 @@ static __init int exercise_pageattr(void) | |||
211 | } | 211 | } |
212 | 212 | ||
213 | } | 213 | } |
214 | global_flush_tlb(); | 214 | cpa_flush_all(); |
215 | 215 | ||
216 | failed += print_split(&sc); | 216 | failed += print_split(&sc); |
217 | 217 | ||
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index bbe691dd272e..cdd2ea2a2239 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -33,7 +33,7 @@ void clflush_cache_range(void *addr, int size) | |||
33 | clflush(addr+i); | 33 | clflush(addr+i); |
34 | } | 34 | } |
35 | 35 | ||
36 | static void flush_kernel_map(void *arg) | 36 | static void __cpa_flush_all(void *arg) |
37 | { | 37 | { |
38 | /* | 38 | /* |
39 | * Flush all to work around Errata in early athlons regarding | 39 | * Flush all to work around Errata in early athlons regarding |
@@ -45,11 +45,11 @@ static void flush_kernel_map(void *arg) | |||
45 | wbinvd(); | 45 | wbinvd(); |
46 | } | 46 | } |
47 | 47 | ||
48 | static void global_flush_tlb(void) | 48 | static void cpa_flush_all(void) |
49 | { | 49 | { |
50 | BUG_ON(irqs_disabled()); | 50 | BUG_ON(irqs_disabled()); |
51 | 51 | ||
52 | on_each_cpu(flush_kernel_map, NULL, 1, 1); | 52 | on_each_cpu(__cpa_flush_all, NULL, 1, 1); |
53 | } | 53 | } |
54 | 54 | ||
55 | struct clflush_data { | 55 | struct clflush_data { |
@@ -350,13 +350,13 @@ static int change_page_attr_set_clr(unsigned long addr, int numpages, | |||
350 | /* | 350 | /* |
351 | * On success we use clflush, when the CPU supports it to | 351 | * On success we use clflush, when the CPU supports it to |
352 | * avoid the wbindv. If the CPU does not support it and in the | 352 | * avoid the wbindv. If the CPU does not support it and in the |
353 | * error case we fall back to global_flush_tlb (which uses | 353 | * error case we fall back to cpa_flush_all (which uses |
354 | * wbindv): | 354 | * wbindv): |
355 | */ | 355 | */ |
356 | if (!ret && cpu_has_clflush) | 356 | if (!ret && cpu_has_clflush) |
357 | cpa_flush_range(addr, numpages); | 357 | cpa_flush_range(addr, numpages); |
358 | else | 358 | else |
359 | global_flush_tlb(); | 359 | cpa_flush_all(); |
360 | 360 | ||
361 | return ret; | 361 | return ret; |
362 | } | 362 | } |