powerpc: Don't preempt_disable() in show_cpuinfo()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 10 Jan 2018 06:10:12 +0000 (17:10 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 10 Jan 2018 14:36:50 +0000 (01:36 +1100)
commit349524bc0da698ec77f2057cf4a4948eb6349265
tree69dba6b04c1a4fe9202a1bc5ef59cc664fd520be
parent2248fade965a5f1ba2a8e6e63f84df696b2d2780
powerpc: Don't preempt_disable() in show_cpuinfo()

This causes warnings from cpufreq mutex code. This is also rather
unnecessary and ineffective. If we really want to prevent concurrent
unplug, we could take the unplug read lock but I don't see this being
critical.

Fixes: cd77b5ce208c ("powerpc/powernv/cpufreq: Fix the frequency read by /proc/cpuinfo")
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup-common.c