arch/arm64/kernel/paravirt-spinlocks.c
0 → 100644
+16
−0
Loading
virt inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8WMFU CVE: NA -------------------------------- This is to fix some lock holder preemption issues. Some other locks implementation do a spin loop before acquiring the lock itself. Currently kernel has an interface of bool vcpu_is_preempted(int cpu). It takes the CPU as parameter and return true if the CPU is preempted. Then kernel can break the spin loops upon the retval of vcpu_is_preempted. As kernel has used this interface, So lets support it. Signed-off-by:Zengruan Ye <yezengruan@huawei.com> Signed-off-by:
lishusen <lishusen2@huawei.com>