summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/imc-pmu.c
diff options
context:
space:
mode:
authorNathan Lynch <nathanl@linux.ibm.com>2019-08-02 14:29:26 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-07 18:59:10 +0200
commit4ce5f278af62cd9ebe019439730bc182f2083de9 (patch)
tree479946c770d045fcaa914297e3db72ca7a4188fc /arch/powerpc/perf/imc-pmu.c
parent714886254f3ccf928e6a8d702ee3181d9a16c314 (diff)
downloadlinux-stable-4ce5f278af62cd9ebe019439730bc182f2083de9.tar.gz
linux-stable-4ce5f278af62cd9ebe019439730bc182f2083de9.tar.bz2
linux-stable-4ce5f278af62cd9ebe019439730bc182f2083de9.zip
powerpc/pseries/mobility: use cond_resched when updating device tree
[ Upstream commit ccfb5bd71d3d1228090a8633800ae7cdf42a94ac ] After a partition migration, pseries_devicetree_update() processes changes to the device tree communicated from the platform to Linux. This is a relatively heavyweight operation, with multiple device tree searches, memory allocations, and conversations with partition firmware. There's a few levels of nested loops which are bounded only by decisions made by the platform, outside of Linux's control, and indeed we have seen RCU stalls on large systems while executing this call graph. Use cond_resched() in these loops so that the cpu is yielded when needed. Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190802192926.19277-4-nathanl@linux.ibm.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/powerpc/perf/imc-pmu.c')
0 files changed, 0 insertions, 0 deletions