aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-05-05 16:35:21 +0200
committerIngo Molnar <mingo@elte.hu>2008-07-08 08:12:05 +0200
commit65280e613fada41704f35709b6c8952ca4b8750c (patch)
treebc3dfcff341afcec6db6f2bdba5e62310059f120 /include
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')
-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 111564fa5e7..bd26559dc8e 100644
--- a/include/asm-x86/pgtable.h
+++ b/include/asm-x86/pgtable.h
@@ -372,7 +372,11 @@ enum {
PG_LEVEL_NUM
};
-void update_page_count(int level, unsigned long pages);
+#ifdef CONFIG_PROC_FS
+extern void update_page_count(int level, unsigned long pages);
+#else
+static inline void update_page_count(int level, unsigned long pages) { }
+#endif
/*
* Helper function that returns the kernel pagetable entry controlling