From: Dave Carroll <dtcarroll@gmail.com>
To: Milton Miller <miltonm@bga.com>, BenH <benh@kernel.crashing.org>
Cc: LPPC <linuxppc-dev@lists.ozlabs.org>,
LKML <linux-kernel@vger.kernel.org>,
Dave Carroll <dcarroll@astekcorp.com>
Subject: [PATCH 2/2] powerpc: Add printk companion for ppc_md.progress
Date: Fri, 10 Jun 2011 19:38:11 -0600 [thread overview]
Message-ID: <1307756291-26513-2-git-send-email-dcarroll@astekcorp.com> (raw)
In-Reply-To: <1307756291-26513-1-git-send-email-dcarroll@astekcorp.com>
From: Dave Carroll <dcarroll@astekcorp.com>
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>
---
arch/powerpc/include/asm/setup.h | 2 ++
arch/powerpc/kernel/setup-common.c | 5 +++++
arch/powerpc/mm/mem.c | 2 +-
3 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/include/asm/setup.h b/arch/powerpc/include/asm/setup.h
index dae1934..c77cb7a 100644
--- a/arch/powerpc/include/asm/setup.h
+++ b/arch/powerpc/include/asm/setup.h
@@ -3,4 +3,6 @@
#include <asm-generic/setup.h>
+extern void ppc_printk_progress(char *s, unsigned short hex);
+
#endif /* _ASM_POWERPC_SETUP_H */
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index 79fca26..e053b16 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -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)
{
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index f4e6408..e0d2aa0 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -386,7 +386,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) {
--
1.7.4
prev parent reply other threads:[~2011-06-11 1:57 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-20 21:26 [PATCH]powerpc: Force page alignment for early reserved memory Dave Carroll
2011-05-20 22:27 ` Benjamin Herrenschmidt
2011-05-20 23:23 ` [PATCH v2]powerpc: Force page alignment for initrd Dave Carroll
2011-05-21 10:36 ` [v2] powerpc: " Milton Miller
2011-05-21 17:05 ` [PATCH v3] powerpc: Force page alignment for initrd reserved memory Dave Carroll
2011-05-22 21:17 ` [PATCH v3] powerpc: Force page alignment for initrd reserved memory, " 'Milton Miller'
2011-05-23 1:29 ` Dave Carroll
2011-05-23 2:31 ` [PATCH v4] " Dave Carroll
2011-05-23 16:50 ` [ " Dave Carroll
2011-05-23 17:39 ` Milton Miller
2011-05-23 22:54 ` [PATCH v5] " Dave Carroll
2011-05-25 9:28 ` [v5] " Milton Miller
2011-05-26 2:00 ` [PATCH v6] " Dave Carroll
2011-05-26 2:32 ` [PATCH v7] " Dave Carroll
2011-05-26 11:18 ` Milton Miller
2011-05-26 16:53 ` [PATCH v8] " Dave Carroll
2011-06-11 1:38 ` [PATCH 1/2] powerpc: Move free_initmem to common code Dave Carroll
2011-06-11 1:38 ` Dave Carroll [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1307756291-26513-2-git-send-email-dcarroll@astekcorp.com \
--to=dtcarroll@gmail.com \
--cc=benh@kernel.crashing.org \
--cc=dcarroll@astekcorp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=miltonm@bga.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®