Skip to content

Commit

Permalink
Hexagon: don't print info for offline CPU's
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
  • Loading branch information
Richard Kuo committed May 1, 2013
1 parent 7777746 commit 2b3c744
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/hexagon/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ static int show_cpuinfo(struct seq_file *m, void *v)
{
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, "model name\t: Hexagon Virtual Machine\n");
seq_printf(m, "BogoMips\t: %lu.%02lu\n",
Expand Down

0 comments on commit 2b3c744

Please sign in to comment.