wireless/bcm43xxx: prefer HPWORK if bcmf task has higher priority than HPWORK
Use high priority queue if the bcmf daemon task has a higher priority than HPWORK, which will bring better performance especially on devices that focus on real-time of network. Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
47ebec34e3
commit
2e3ed3ae67
@ -120,6 +120,7 @@ config IEEE80211_BROADCOM_FULLMAC_SDIO
|
|||||||
|
|
||||||
config IEEE80211_BROADCOM_SCHED_PRIORITY
|
config IEEE80211_BROADCOM_SCHED_PRIORITY
|
||||||
int "Broadcom BCMF daemon thread schedule priority"
|
int "Broadcom BCMF daemon thread schedule priority"
|
||||||
|
default SCHED_HPWORKPRIORITY if SCHED_HPWORK
|
||||||
default 255
|
default 255
|
||||||
---help---
|
---help---
|
||||||
This parameter should be set the bcmf daemon thread
|
This parameter should be set the bcmf daemon thread
|
||||||
|
@ -68,13 +68,17 @@
|
|||||||
/* The low priority work queue is preferred. If it is not enabled, LPWORK
|
/* The low priority work queue is preferred. If it is not enabled, LPWORK
|
||||||
* will be the same as HPWORK.
|
* will be the same as HPWORK.
|
||||||
*
|
*
|
||||||
* NOTE: However, the network should NEVER run on the high priority work
|
* Use high priority queue if the bcmf daemon task has a higher priority
|
||||||
* queue! That queue is intended only to service short back end interrupt
|
* than HPWORK, which will bring better performance especially on devices
|
||||||
* processing that never suspends. Suspending the high priority work queue
|
* that focus on real-time of network.
|
||||||
* may bring the system to its knees!
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BCMFWORK LPWORK
|
#if defined(CONFIG_SCHED_HPWORK) && \
|
||||||
|
(CONFIG_IEEE80211_BROADCOM_SCHED_PRIORITY >= CONFIG_SCHED_HPWORKPRIORITY)
|
||||||
|
# define BCMFWORK HPWORK
|
||||||
|
#else
|
||||||
|
# define BCMFWORK LPWORK
|
||||||
|
#endif
|
||||||
|
|
||||||
/* CONFIG_IEEE80211_BROADCOM_NINTERFACES determines the number of physical
|
/* CONFIG_IEEE80211_BROADCOM_NINTERFACES determines the number of physical
|
||||||
* interfaces that will be supported.
|
* interfaces that will be supported.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user