qcacld-3.0: Set proper arch dependency for NAPI
NAPI APIs in HDD are platform specific. So make these API's
conditionally compiled.
Change-Id: Id87c11da13f096d4f9ff735bbd98dcea23d52310
CRs-Fixed: 2235978
diff --git a/core/hdd/inc/wlan_hdd_napi.h b/core/hdd/inc/wlan_hdd_napi.h
index f718059..9e00821 100644
--- a/core/hdd/inc/wlan_hdd_napi.h
+++ b/core/hdd/inc/wlan_hdd_napi.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -49,12 +49,12 @@
struct qca_napi_data *hdd_napi_get_all(void);
-#ifdef HELIUMPLUS
+#if defined HELIUMPLUS && defined MSM_PLATFORM
int hdd_napi_apply_throughput_policy(struct hdd_context *hddctx,
uint64_t tx_packets,
uint64_t rx_packets);
int hdd_napi_serialize(int is_on);
-#else /* FEATURE_NAPI and NOT HELIUM */
+#else
static inline int hdd_napi_apply_throughput_policy(struct hdd_context *hddctx,
uint64_t tx_packets,
uint64_t rx_packets)
@@ -65,7 +65,7 @@
{
return -EINVAL;
}
-#endif /* HELIUMPLUS */
+#endif /* HELIUMPLUS && MSM_PLATFORM */
#else /* ! defined(FEATURE_NAPI) */
#include "hif_napi.h"
diff --git a/core/hdd/src/wlan_hdd_napi.c b/core/hdd/src/wlan_hdd_napi.c
index a8d6bc8..2c69248 100644
--- a/core/hdd/src/wlan_hdd_napi.c
+++ b/core/hdd/src/wlan_hdd_napi.c
@@ -249,7 +249,7 @@
return rc;
}
-#ifdef HELIUMPLUS
+#if defined HELIUMPLUS && defined MSM_PLATFORM
/**
* hdd_napi_perfd_cpufreq() - set/reset min CPU freq for cores
* @req_state: high/low
@@ -427,7 +427,7 @@
}
return rc;
}
-#endif /* HELIUMPLUS */
+#endif /* HELIUMPLUS && MSM_PLATFORM */
/**
* hdd_napi_poll() - NAPI poll function