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>
This commit is contained in:
Thomas Gleixner
2008-05-05 16:35:21 +02:00
committed by Ingo Molnar
parent ce0c0e50f9
commit 65280e613f
2 changed files with 32 additions and 24 deletions

View File

@@ -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