mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
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: Milton Miller <miltonm@bga.com> Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Dave Carroll <dcarroll@astekcorp.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
2773fcc8c4
commit
a9c0f41b3a
3 changed files with 8 additions and 1 deletions
|
@ -3,4 +3,6 @@
|
||||||
|
|
||||||
#include <asm-generic/setup.h>
|
#include <asm-generic/setup.h>
|
||||||
|
|
||||||
|
extern void ppc_printk_progress(char *s, unsigned short hex);
|
||||||
|
|
||||||
#endif /* _ASM_POWERPC_SETUP_H */
|
#endif /* _ASM_POWERPC_SETUP_H */
|
||||||
|
|
|
@ -704,6 +704,11 @@ static int powerpc_debugfs_init(void)
|
||||||
arch_initcall(powerpc_debugfs_init);
|
arch_initcall(powerpc_debugfs_init);
|
||||||
#endif
|
#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,
|
static int ppc_dflt_bus_notify(struct notifier_block *nb,
|
||||||
unsigned long action, void *data)
|
unsigned long action, void *data)
|
||||||
{
|
{
|
||||||
|
|
|
@ -387,7 +387,7 @@ void free_initmem(void)
|
||||||
{
|
{
|
||||||
unsigned long addr;
|
unsigned long addr;
|
||||||
|
|
||||||
ppc_md.progress = NULL;
|
ppc_md.progress = ppc_printk_progress;
|
||||||
|
|
||||||
addr = (unsigned long)__init_begin;
|
addr = (unsigned long)__init_begin;
|
||||||
for (; addr < (unsigned long)__init_end; addr += PAGE_SIZE) {
|
for (; addr < (unsigned long)__init_end; addr += PAGE_SIZE) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue