OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 May 2018 06:48:53 +0000 (08:48 +0200)
commit90c2e2e1a88ab8b8ca7387b49539722268ecd96e
treee01adb3d0b3049701430f0faa2a534dc9aec82b7
parent605902e923584c2884ef869ef2cd4e4172be275e
powerpc: Don't preempt_disable() in show_cpuinfo()

commit 349524bc0da698ec77f2057cf4a4948eb6349265 upstream.

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>
Acked-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/setup-common.c