From: Richard Kuo Date: Mon, 4 Feb 2013 20:17:15 +0000 (-0600) Subject: Hexagon: don't print info for offline CPU's X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b3c744c3bcaab14ad2cc0f067d76c2f119085a5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Hexagon: don't print info for offline CPU's Signed-off-by: Richard Kuo --- diff --git a/arch/hexagon/kernel/setup.c b/arch/hexagon/kernel/setup.c index 2e2304f7b7ee..d2dcb6bcdad7 100644 --- a/arch/hexagon/kernel/setup.c +++ b/arch/hexagon/kernel/setup.c @@ -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",