瀏覽代碼

qcacld-3.0: Add VCPU_TIMESTOLEN for Hypervisor system

Per feedback from some hypervisor system vendor, a virtual CPU can
have some stolen time imposed by the physical CPU scheduling, this
can result in some tasks' handling taking longer time than expected,
even when spin lock is held by code running on the vCPU.

With the stolen time existing, wlan driver's timeout for spinlock
holding must be different on hypervisor systems as compared to metal
platforms.

Change-Id: I607895f8afc9ad745a7a68939202a66560f31637
CRs-Fixed: 3242535
Tiger Yu 2 年之前
父節點
當前提交
3c7cbe4fd7
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Kbuild

+ 1 - 0
Kbuild

@@ -4351,6 +4351,7 @@ ccflags-y += -DQDF_LOCK_STATS_DESTROY_PRINT=0
 ifneq ($(CONFIG_ARCH_SDXPRAIRIE), y)
 ccflags-y += -DQDF_LOCK_STATS_BUG_ON=1
 endif
+cppflags-$(CONFIG_VCPU_TIMESTOLEN) += -DVCPU_TIMESTOLEN
 ccflags-y += -DQDF_LOCK_STATS_LIST=1
 ccflags-y += -DQDF_LOCK_STATS_LIST_SIZE=256
 endif