summaryrefslogtreecommitdiff
path: root/arch/x86/mm/pageattr-test.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-30 15:33:56 +0300
committerIngo Molnar <mingo@elte.hu>2008-01-30 15:33:56 +0300
commit5508a7489659f1eed108d3ae7c2d36c8794ee330 (patch)
tree518702b4f68c75c83bb2976e275cb53c5138488a /arch/x86/mm/pageattr-test.c
parentbb5c2dbd57d93a36b0386dd783dd95e0cbaaa23f (diff)
downloadlinux-5508a7489659f1eed108d3ae7c2d36c8794ee330.tar.xz
x86: cpa self-test fixes
cpa self-test fixes. change_page_attr_addr() was buggy, it passed in a virtual address as a physical one. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/pageattr-test.c')
-rw-r--r--arch/x86/mm/pageattr-test.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c
index 91e05a26004d..a12dabbd5c33 100644
--- a/arch/x86/mm/pageattr-test.c
+++ b/arch/x86/mm/pageattr-test.c
@@ -106,12 +106,6 @@ static __init int print_split(struct split_state *s)
return err;
}
-static __init int state_same(struct split_state *a, struct split_state *b)
-{
- return a->lpg == b->lpg && a->gpg == b->gpg && a->spg == b->spg &&
- a->exec == b->exec;
-}
-
static unsigned long __initdata addr[NTEST];
static unsigned int __initdata len[NTEST];
@@ -229,8 +223,6 @@ static __init int exercise_pageattr(void)
global_flush_tlb();
failed += print_split(&sc);
- if (!state_same(&sa, &sc))
- failed++;
if (failed)
printk(KERN_ERR "CPA selftests NOT PASSED. Please report.\n");