aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/pageattr-test.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-01-30 07:34:08 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:34:08 -0500
commit72932c7ad2cc309b0ba6149aa31faa26aaee54d5 (patch)
tree6edd42b7d58943f7030a9adab89c5482422ddffa /arch/x86/mm/pageattr-test.c
parentedeed30589f5defe63ce6aaae56f2b7c855e4520 (diff)
x86: cpa move the flush into set and clear functions
To avoid the modification of the flush code for the clflush implementation, move the flush into the set and clear functions and provide helper functions for the debugging code. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/pageattr-test.c')
-rw-r--r--arch/x86/mm/pageattr-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c
index fe73905d075e..4e8b8c6baccd 100644
--- a/arch/x86/mm/pageattr-test.c
+++ b/arch/x86/mm/pageattr-test.c
@@ -162,8 +162,8 @@ static __init int exercise_pageattr(void)
162 continue; 162 continue;
163 } 163 }
164 164
165 err = change_page_attr_clear(addr[i], len[i], 165 err = __change_page_attr_clear(addr[i], len[i],
166 __pgprot(_PAGE_GLOBAL)); 166 __pgprot(_PAGE_GLOBAL));
167 if (err < 0) { 167 if (err < 0) {
168 printk(KERN_ERR "CPA %d failed %d\n", i, err); 168 printk(KERN_ERR "CPA %d failed %d\n", i, err);
169 failed++; 169 failed++;
@@ -197,8 +197,8 @@ static __init int exercise_pageattr(void)
197 failed++; 197 failed++;
198 continue; 198 continue;
199 } 199 }
200 err = change_page_attr_set(addr[i], len[i], 200 err = __change_page_attr_set(addr[i], len[i],
201 __pgprot(_PAGE_GLOBAL)); 201 __pgprot(_PAGE_GLOBAL));
202 if (err < 0) { 202 if (err < 0) {
203 printk(KERN_ERR "CPA reverting failed: %d\n", err); 203 printk(KERN_ERR "CPA reverting failed: %d\n", err);
204 failed++; 204 failed++;