From: leiwen@marvell.com (Lei Wen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: make app read out process num even not use SMP
Date: Sun, 19 Sep 2010 11:22:16 +0800 [thread overview]
Message-ID: <1284866536-21431-1-git-send-email-leiwen@marvell.com> (raw)
Some app like trace-cmd need to know the process number, but not
all arm board is enabled with the SMP. Add this fix up to let those
app works happy.
Signed-off-by: Lei Wen<leiwen@marvell.com>
Signed-off-by: Lei Wen <leiwen@marvell.com>
---
arch/arm/kernel/setup.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index d5231ae..1af3e2d 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -917,6 +917,7 @@ static int c_show(struct seq_file *m, void *v)
(per_cpu(cpu_data, i).loops_per_jiffy / (5000UL/HZ)) % 100);
}
#else /* CONFIG_SMP */
+ seq_printf(m, "processor\t: 0\n");
seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",
loops_per_jiffy / (500000/HZ),
(loops_per_jiffy / (5000/HZ)) % 100);
--
1.7.0.4
next reply other threads:[~2010-09-19 3:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-19 3:22 Lei Wen [this message]
2010-09-19 11:51 ` [PATCH] ARM: make app read out process num even not use SMP Sergei Shtylyov
2010-09-19 12:29 ` Russell King - ARM Linux
2010-09-19 13:04 ` Russell King - ARM Linux
2010-09-19 16:35 ` Steven Rostedt
2010-09-20 16:52 ` Steven Rostedt
2010-09-19 13:05 ` Steven Rostedt
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=1284866536-21431-1-git-send-email-leiwen@marvell.com \
--to=leiwen@marvell.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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