Hexagon: don't print info for offline CPU's
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
This commit is contained in:
parent
7777746c40
commit
2b3c744c3b
|
@ -130,6 +130,11 @@ static int show_cpuinfo(struct seq_file *m, void *v)
|
||||||
{
|
{
|
||||||
int cpu = (unsigned long) v - 1;
|
int cpu = (unsigned long) v - 1;
|
||||||
|
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
if (!cpu_online(cpu))
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
seq_printf(m, "processor\t: %d\n", cpu);
|
seq_printf(m, "processor\t: %d\n", cpu);
|
||||||
seq_printf(m, "model name\t: Hexagon Virtual Machine\n");
|
seq_printf(m, "model name\t: Hexagon Virtual Machine\n");
|
||||||
seq_printf(m, "BogoMips\t: %lu.%02lu\n",
|
seq_printf(m, "BogoMips\t: %lu.%02lu\n",
|
||||||
|
|
Loading…
Reference in New Issue