Commit 6c37a88c authored by Paul Mackerras's avatar Paul Mackerras Committed by Linus Torvalds
Browse files

[PATCH] ppc32: don't call progress functions after boot



On ppc32, the platform code can supply a "progress" function that is
used to show progress through the boot.  These functions are usually
in an init section and so can't be called after the init pages are
freed.  Now that the cpu bringup code can be called after the system
is booted (for hotplug cpu) we can get the situation where the
progress function can be called after boot.  The simple fix is to set
the progress function pointer to NULL when the init pages are freed,
and that is what this patch does (note that all callers already check
whether the function pointer is NULL before trying to call it).
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 07ab67c8
...@@ -179,6 +179,7 @@ void free_initmem(void) ...@@ -179,6 +179,7 @@ void free_initmem(void)
if (!have_of) if (!have_of)
FREESEC(openfirmware); FREESEC(openfirmware);
printk("\n"); printk("\n");
ppc_md.progress = NULL;
#undef FREESEC #undef FREESEC
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment