Browse Source

qcacld-3.0: Add WALT_GET_CPU_TAKEN_SUPPORT flag

set WALT_GET_CPU_TAKEN_SUPPORT if walt_get_cpus_taken
is present to avoid issue on target where changes are
not present in kernel branch.

Change-Id: I550291b5fb2dc38b6a26eaece3fbe3ede5604a7d
CRs-Fixed: 3559245
Amit Mehta 1 year ago
parent
commit
af94327676
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Kbuild

+ 4 - 0
Kbuild

@@ -4757,6 +4757,10 @@ ccflags-$(CONFIG_WINDOW_REG_PLD_LOCK_ENABLE) += -DWINDOW_REG_PLD_LOCK_ENABLE
 ccflags-$(CONFIG_DUMP_REO_QUEUE_INFO_IN_DDR) += -DDUMP_REO_QUEUE_INFO_IN_DDR
 ccflags-$(CONFIG_DP_RX_REFILL_CPU_PERF_AFFINE_MASK) += -DDP_RX_REFILL_CPU_PERF_AFFINE_MASK
 ccflags-$(CONFIG_WLAN_FEATURE_AFFINITY_MGR) += -DWLAN_FEATURE_AFFINITY_MGR
+found = $(shell if grep -qF "walt_get_cpus_taken" $(srctree)/kernel/sched/walt/walt.c; then echo "yes" ;else echo "no" ;fi;)
+ifeq ($(findstring yes, $(found)), yes)
+ccflags-y += -DWALT_GET_CPU_TAKEN_SUPPORT
+endif
 
 ifdef CONFIG_MAX_CLIENTS_ALLOWED
 ccflags-y += -DWLAN_MAX_CLIENTS_ALLOWED=$(CONFIG_MAX_CLIENTS_ALLOWED)