android_kernel_samsung_a7y1.../arch/arm64
Yunfeng Ye 9a0a49d325 arm64: psci: Reduce the waiting time for cpu_psci_cpu_kill()
[ Upstream commit bfcef4ab1d7ee8921bc322109b1692036cc6cbe0 ]

In cases like suspend-to-disk and suspend-to-ram, a large number of CPU
cores need to be shut down. At present, the CPU hotplug operation is
serialised, and the CPU cores can only be shut down one by one. In this
process, if PSCI affinity_info() does not return LEVEL_OFF quickly,
cpu_psci_cpu_kill() needs to wait for 10ms. If hundreds of CPU cores
need to be shut down, it will take a long time.

Normally, there is no need to wait 10ms in cpu_psci_cpu_kill(). So
change the wait interval from 10 ms to max 1 ms and use usleep_range()
instead of msleep() for more accurate timer.

In addition, reducing the time interval will increase the messages
output, so remove the "Retry ..." message, instead, track time and
output to the the sucessful message.

Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:20:51 +02:00
..
boot arm64: dts: amd: Fix SPI bus warnings 2020-04-07 12:30:49 +02:00
configs Revert "defcon: NEVER_ENFORCE" 2020-04-06 19:40:17 +05:30
crypto crypto: arm64/sha2-ce - correct digest for empty data in finup 2020-04-06 19:55:49 +02:00
include arm64: Rename cpuid_feature field extract routines 2020-04-07 08:13:34 +02:00
kernel arm64: psci: Reduce the waiting time for cpu_psci_cpu_kill() 2020-04-07 13:20:51 +02:00
kvm arm64: Rename cpuid_feature field extract routines 2020-04-07 08:13:34 +02:00
lib arm64: uaccess: Ensure PAN is re-enabled after unhandled uaccess fault 2020-04-07 12:33:30 +02:00
mach-exynos Introduce Exynos dtbtool to the Linux build system 2020-03-27 22:20:07 +05:30
mm arch:arm64:mm: fix errors 2020-04-07 11:52:03 +05:30
net A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xen A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig arm64: support keyctl() system call in 32-bit mode 2020-04-06 13:03:41 +02:00
Kconfig.debug A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig.platforms A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile Introduce Exynos dtbtool to the Linux build system 2020-03-27 22:20:07 +05:30