Message ID | 20180110061014.29181-2-benh@kernel.crashing.org (mailing list archive) |
---|---|
State | Accepted |
Commit | f5f563012a7002e64853c61d293d65b3de8d9dca |
Headers | show |
Series | [1/3] powerpc: Don't preempt_disable() in show_cpuinfo() | expand |
On Wed, 2018-01-10 at 06:10:13 UTC, Benjamin Herrenschmidt wrote: > We used to not put the newline between the CPU part and the summary > part on UP kernels. This is a rather pointless ifdef so take it out. > > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/f5f563012a7002e64853c61d293d65 cheers
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 8fd3a70047f1..c1df4ba0094c 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -346,10 +346,8 @@ static int show_cpuinfo(struct seq_file *m, void *v) loops_per_jiffy / (500000/HZ), (loops_per_jiffy / (5000/HZ)) % 100); #endif - -#ifdef CONFIG_SMP seq_printf(m, "\n"); -#endif + /* If this is the last cpu, print the summary */ if (cpumask_next(cpu_id, cpu_online_mask) >= nr_cpu_ids) show_cpuinfo_summary(m);
We used to not put the newline between the CPU part and the summary part on UP kernels. This is a rather pointless ifdef so take it out. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> --- arch/powerpc/kernel/setup-common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)