From 7fc48292f7dde8fda98afb543d54d43e7b7b450e Mon Sep 17 00:00:00 2001 From: Mahesh Kumar Kalikot Veetil Date: Mon, 30 Apr 2018 07:36:20 -0700 Subject: [PATCH] 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 --- core/hdd/inc/wlan_hdd_napi.h | 8 ++++---- core/hdd/src/wlan_hdd_napi.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_napi.h b/core/hdd/inc/wlan_hdd_napi.h index f71805950065..9e008218a3dc 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 @@ int hdd_napi_poll(struct napi_struct *napi, int budget); 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 @@ static inline int hdd_napi_serialize(int is_on) { 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 a8d6bc84713b..2c69248ca502 100644 --- a/core/hdd/src/wlan_hdd_napi.c +++ b/core/hdd/src/wlan_hdd_napi.c @@ -249,7 +249,7 @@ int hdd_napi_event(enum qca_napi_event event, void *data) 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 @@ int hdd_napi_serialize(int is_on) } return rc; } -#endif /* HELIUMPLUS */ +#endif /* HELIUMPLUS && MSM_PLATFORM */ /** * hdd_napi_poll() - NAPI poll function