git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sfc: Use consistent types for interrupt coalescing parameters
[pandora-kernel.git]
/
drivers
/
net
/
ethernet
/
sfc
/
efx.c
diff --git
a/drivers/net/ethernet/sfc/efx.c
b/drivers/net/ethernet/sfc/efx.c
index
b6b0e71
..
097ed8b
100644
(file)
--- a/
drivers/net/ethernet/sfc/efx.c
+++ b/
drivers/net/ethernet/sfc/efx.c
@@
-1556,18
+1556,18
@@
static void efx_remove_all(struct efx_nic *efx)
*
**************************************************************************/
*
**************************************************************************/
-static unsigned i
rq_mod_ticks(int usecs,
int resolution)
+static unsigned i
nt irq_mod_ticks(unsigned int usecs, unsigned
int resolution)
{
{
- if (usecs
<
= 0)
- return 0;
/* cannot receive interrupts ahead of time :-) */
+ if (usecs
=
= 0)
+ return 0;
if (usecs < resolution)
return 1; /* never round down to 0 */
return usecs / resolution;
}
/* Set interrupt moderation parameters */
if (usecs < resolution)
return 1; /* never round down to 0 */
return usecs / resolution;
}
/* Set interrupt moderation parameters */
-void efx_init_irq_moderation(struct efx_nic *efx,
int tx_usecs, int r
x_usecs,
- bool rx_adaptive)
+void efx_init_irq_moderation(struct efx_nic *efx,
unsigned int t
x_usecs,
+
unsigned int rx_usecs,
bool rx_adaptive)
{
struct efx_channel *channel;
unsigned tx_ticks = irq_mod_ticks(tx_usecs, EFX_IRQ_MOD_RESOLUTION);
{
struct efx_channel *channel;
unsigned tx_ticks = irq_mod_ticks(tx_usecs, EFX_IRQ_MOD_RESOLUTION);