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>
This commit is contained in:
committed by
Ingo Molnar
parent
edeed30589
commit
72932c7ad2
@@ -162,8 +162,8 @@ static __init int exercise_pageattr(void)
|
||||
continue;
|
||||
}
|
||||
|
||||
err = change_page_attr_clear(addr[i], len[i],
|
||||
__pgprot(_PAGE_GLOBAL));
|
||||
err = __change_page_attr_clear(addr[i], len[i],
|
||||
__pgprot(_PAGE_GLOBAL));
|
||||
if (err < 0) {
|
||||
printk(KERN_ERR "CPA %d failed %d\n", i, err);
|
||||
failed++;
|
||||
@@ -197,8 +197,8 @@ static __init int exercise_pageattr(void)
|
||||
failed++;
|
||||
continue;
|
||||
}
|
||||
err = change_page_attr_set(addr[i], len[i],
|
||||
__pgprot(_PAGE_GLOBAL));
|
||||
err = __change_page_attr_set(addr[i], len[i],
|
||||
__pgprot(_PAGE_GLOBAL));
|
||||
if (err < 0) {
|
||||
printk(KERN_ERR "CPA reverting failed: %d\n", err);
|
||||
failed++;
|
||||
|
Reference in New Issue
Block a user