mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
qeth: Reduce CPU consumption through less SIGA-r calls
Patch avoids SIGA-r calls in case of SIGA-r required. It only calls SIGA-r if a threshold of free buffer is reached. CPU consumption is reduced as a consequence. Signed-off-by: Einar Lueck <[email protected]> Signed-off-by: Frank Blaschka <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1d36cb479f
commit
0284a0fdf3
1 changed files with 1 additions and 2 deletions
|
|
@ -236,8 +236,7 @@ static inline int qeth_is_ipa_enabled(struct qeth_ipa_info *ipa,
|
|||
#define QETH_IN_BUF_COUNT_MAX 128
|
||||
#define QETH_MAX_BUFFER_ELEMENTS(card) ((card)->qdio.in_buf_size >> 12)
|
||||
#define QETH_IN_BUF_REQUEUE_THRESHOLD(card) \
|
||||
((card)->ssqd.qdioac1 & AC1_SIGA_INPUT_NEEDED ? 1 : \
|
||||
((card)->qdio.in_buf_pool.buf_count / 2))
|
||||
((card)->qdio.in_buf_pool.buf_count / 2)
|
||||
|
||||
/* buffers we have to be behind before we get a PCI */
|
||||
#define QETH_PCI_THRESHOLD_A(card) ((card)->qdio.in_buf_pool.buf_count+1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue