aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pgtable.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-05-05 10:35:21 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 02:12:05 -0400
commit65280e613fada41704f35709b6c8952ca4b8750c (patch)
treebc3dfcff341afcec6db6f2bdba5e62310059f120 /include/asm-x86/pgtable.h
parentce0c0e50f94e8c55b00a722e8c6e8d6c802be211 (diff)
x86: janitor CPA statistics patch
1) Remove __meminit from update_pages_count. It is used inside split_pages() 2) Make the code depend on PROC_FS. Doing statistics for nothing is useless and not adding useless code is nice to the Linux tiny folks. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/pgtable.h')
-rw-r--r--include/asm-x86/pgtable.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h
index 111564fa5e70..bd26559dc8e8 100644
--- a/include/asm-x86/pgtable.h
+++ b/include/asm-x86/pgtable.h
@@ -372,7 +372,11 @@ enum {
372 PG_LEVEL_NUM 372 PG_LEVEL_NUM
373}; 373};
374 374
375void update_page_count(int level, unsigned long pages); 375#ifdef CONFIG_PROC_FS
376extern void update_page_count(int level, unsigned long pages);
377#else
378static inline void update_page_count(int level, unsigned long pages) { }
379#endif
376 380
377/* 381/*
378 * Helper function that returns the kernel pagetable entry controlling 382 * Helper function that returns the kernel pagetable entry controlling