summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorNaveen N. Rao2019-07-03 19:04:01 +0200
committerMichael Ellerman2019-07-04 14:27:25 +0200
commit18a593c8b5426f6a08bcb353636d761a83f78d9e (patch)
treef12ab26568d0b44e9161f6a662d9f11e93b200b4 /arch/powerpc/include
parentpowerpc/pseries: Provide vcpu dispatch statistics (diff)
downloadkernel-qcow2-linux-18a593c8b5426f6a08bcb353636d761a83f78d9e.tar.gz
kernel-qcow2-linux-18a593c8b5426f6a08bcb353636d761a83f78d9e.tar.xz
kernel-qcow2-linux-18a593c8b5426f6a08bcb353636d761a83f78d9e.zip
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>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/lppaca.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/lppaca.h b/arch/powerpc/include/asm/lppaca.h
index f5195b4d9ffb..d7952665945a 100644
--- a/arch/powerpc/include/asm/lppaca.h
+++ b/arch/powerpc/include/asm/lppaca.h
@@ -201,7 +201,7 @@ extern rwlock_t dtl_access_lock;
extern void (*dtl_consumer)(struct dtl_entry *entry, u64 index);
extern void register_dtl_buffer(int cpu);
-extern void alloc_dtl_buffers(void);
+extern void alloc_dtl_buffers(unsigned long *time_limit);
extern long hcall_vphn(unsigned long cpu, u64 flags, __be32 *associativity);
#endif /* CONFIG_PPC_BOOK3S */