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
这个提交包含在:
@@ -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"
|
||||
|
@@ -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
|
||||
|
在新工单中引用
屏蔽一个用户