]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Protect against hogging the cpu while setting up the stats
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Wed, 3 Jul 2019 17:04:01 +0000 (22:34 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Jul 2019 12:27:25 +0000 (22:27 +1000)
commit2170ae165ba6e40d556df0059f9c8d8d5cc5795a
treef12ab26568d0b44e9161f6a662d9f11e93b200b4
parent3ff6da785199291e79fad9a125f5733a3f44af0a
powerpc/pseries: Protect against hogging the cpu while setting up the stats

When enabling or disabling the vcpu dispatch statistics, we do a lot of
work including allocating/deallocating memory across all possible cpus
for the DTL buffer. In order to guard against hogging the cpu for too
long, track the time we're taking and yield the processor if necessary.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/lppaca.h
arch/powerpc/platforms/pseries/lpar.c
arch/powerpc/platforms/pseries/setup.c