diff options
author | Andreas Herrmann <andreas.herrmann3@amd.com> | 2008-08-06 10:23:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-11 15:30:59 -0400 |
commit | 012f09e7942716d5f4339f1fd9a831a485bb1d4a (patch) | |
tree | 487654a5b902975efe8637bc5d048ade15cc50b0 | |
parent | 10fec20ef5eec1c91913baec1225400f0d02df40 (diff) |
x86: compile pat debugfs interface only if CONFIG_X86_PAT is set
Recently I've run a kernel w/o PAT support and wondered why there was
a file "x86/pat_memtype_list" in debugfs. Of course it's empty if PAT
is disabled ... so just get rid of this interface if PAT is disabled.
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/mm/pat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c index 2fe30916d4b..647b1c4de71 100644 --- a/arch/x86/mm/pat.c +++ b/arch/x86/mm/pat.c | |||
@@ -492,7 +492,7 @@ void unmap_devmem(unsigned long pfn, unsigned long size, pgprot_t vma_prot) | |||
492 | free_memtype(addr, addr + size); | 492 | free_memtype(addr, addr + size); |
493 | } | 493 | } |
494 | 494 | ||
495 | #if defined(CONFIG_DEBUG_FS) | 495 | #if defined(CONFIG_DEBUG_FS) && defined(CONFIG_X86_PAT) |
496 | 496 | ||
497 | /* get Nth element of the linked list */ | 497 | /* get Nth element of the linked list */ |
498 | static struct memtype *memtype_get_idx(loff_t pos) | 498 | static struct memtype *memtype_get_idx(loff_t pos) |
@@ -576,4 +576,4 @@ static int __init pat_memtype_list_init(void) | |||
576 | 576 | ||
577 | late_initcall(pat_memtype_list_init); | 577 | late_initcall(pat_memtype_list_init); |
578 | 578 | ||
579 | #endif /* CONFIG_DEBUG_FS */ | 579 | #endif /* CONFIG_DEBUG_FS && CONFIG_X86_PAT */ |