提交 a9c0f41b 编写于 作者: D Dave Carroll 提交者: Benjamin Herrenschmidt

powerpc: Add printk companion for ppc_md.progress

This patch adds a printk companion to replace the udbg progress function
when initmem is freed.
Suggested-by: NMilton Miller <miltonm@bga.com>
Suggested-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NDave Carroll <dcarroll@astekcorp.com>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 2773fcc8
......@@ -3,4 +3,6 @@
#include <asm-generic/setup.h>
extern void ppc_printk_progress(char *s, unsigned short hex);
#endif /* _ASM_POWERPC_SETUP_H */
......@@ -704,6 +704,11 @@ static int powerpc_debugfs_init(void)
arch_initcall(powerpc_debugfs_init);
#endif
void ppc_printk_progress(char *s, unsigned short hex)
{
pr_info("%s\n", s);
}
static int ppc_dflt_bus_notify(struct notifier_block *nb,
unsigned long action, void *data)
{
......
......@@ -387,7 +387,7 @@ void free_initmem(void)
{
unsigned long addr;
ppc_md.progress = NULL;
ppc_md.progress = ppc_printk_progress;
addr = (unsigned long)__init_begin;
for (; addr < (unsigned long)__init_end; addr += PAGE_SIZE) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册