qcacmn: Change CONFIG_SLUB_DEBUG_ON define to HIF_CONFIG_SLUB_DEBUG_ON
Change CONFIG_SLUB_DEBUG_ON to HIF_CONFIG_SLUB_DEBUG_ON to differentiate
kernel CONFIG_SLUB_DEBUG_ON macro with hif specific debug option.
Change-Id: I8922d5c37363da382f3f0b23489f8fd3544eed7d
CRs-Fixed: 1088928
diff --git a/hif/inc/hif.h b/hif/inc/hif.h
index 6bd6376..795ce70 100644
--- a/hif/inc/hif.h
+++ b/hif/inc/hif.h
@@ -148,6 +148,12 @@
#define HIF_MAX_GROUP 8
#ifdef CONFIG_SLUB_DEBUG_ON
+#ifndef CONFIG_WIN
+#define HIF_CONFIG_SLUB_DEBUG_ON
+#endif
+#endif
+
+#ifdef HIF_CONFIG_SLUB_DEBUG_ON
#define QCA_NAPI_BUDGET 64
#define QCA_NAPI_DEF_SCALE 2
#else /* PERF build */
diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c
index 66e2938..10baa5d 100644
--- a/hif/src/ce/ce_service.c
+++ b/hif/src/ce/ce_service.c
@@ -97,7 +97,7 @@
hif_ce_war1 = 1;
}
-#ifdef CONFIG_SLUB_DEBUG_ON
+#ifdef HIF_CONFIG_SLUB_DEBUG_ON
/**
* struct hif_ce_event - structure for detailing a ce event
@@ -294,7 +294,7 @@
}
}
-#ifdef CONFIG_SLUB_DEBUG_ON
+#ifdef HIF_CONFIG_SLUB_DEBUG_ON
/**
* ce_validate_nbytes() - validate nbytes for slub builds on tx descriptors
* @nbytes: nbytes value being written into a send descriptor
diff --git a/hif/src/ce/ce_tasklet.c b/hif/src/ce/ce_tasklet.c
index c820d87..52595f2 100644
--- a/hif/src/ce/ce_tasklet.c
+++ b/hif/src/ce/ce_tasklet.c
@@ -121,7 +121,7 @@
work_initialized = true;
}
-#ifdef CONFIG_SLUB_DEBUG_ON
+#ifdef HIF_CONFIG_SLUB_DEBUG_ON
/**
* ce_schedule_tasklet() - schedule ce tasklet
* @tasklet_entry: struct ce_tasklet_entry
diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c
index 82f6f9f..c5d9eb8 100644
--- a/hif/src/pcie/if_pci.c
+++ b/hif/src/pcie/if_pci.c
@@ -863,7 +863,7 @@
return IRQ_HANDLED;
}
-#ifdef CONFIG_SLUB_DEBUG_ON
+#ifdef HIF_CONFIG_SLUB_DEBUG_ON
/* worker thread to schedule wlan_tasklet in SLUB debug build */
static void reschedule_tasklet_work_handler(void *arg)
@@ -899,7 +899,7 @@
}
#else
static void hif_init_reschedule_tasklet_work(struct hif_pci_softc *sc) { }
-#endif /* CONFIG_SLUB_DEBUG_ON */
+#endif /* HIF_CONFIG_SLUB_DEBUG_ON */
void wlan_tasklet(unsigned long data)
{