diff options
author | Mikael Pettersson <mikpe@it.uu.se> | 2009-09-06 19:59:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-11 15:54:49 -0400 |
commit | f510c35de0e63e1066db83d2fdce99e6dbde0c80 (patch) | |
tree | 6a20dee2eb58fb0bb17fe0cd74bcffe0fbe2a549 | |
parent | 864fdf884e82bacbe8ca5e93bd43393a61d2e2b4 (diff) |
mv643xx_eth.c: remove unused txq_set_wrr()
The txq_set_wrr() function in drivers/net/mv643xx_eth.c is
unused, not even referenced under #if 0 or something like that,
which results in a compile-time warning:
drivers/net/mv643xx_eth.c:1070: warning: 'txq_set_wrr' defined but not used
Fix: remove it.
Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/mv643xx_eth.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 0f32db3e92ad..b62e61d4ca3e 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -1066,40 +1066,6 @@ static void txq_set_fixed_prio_mode(struct tx_queue *txq) | |||
1066 | } | 1066 | } |
1067 | } | 1067 | } |
1068 | 1068 | ||
1069 | static void txq_set_wrr(struct tx_queue *txq, int weight) | ||
1070 | { | ||
1071 | struct mv643xx_eth_private *mp = txq_to_mp(txq); | ||
1072 | int off; | ||
1073 | u32 val; | ||
1074 | |||
1075 | /* | ||
1076 | * Turn off fixed priority mode. | ||
1077 | */ | ||
1078 | off = 0; | ||
1079 | switch (mp->shared->tx_bw_control) { | ||
1080 | case TX_BW_CONTROL_OLD_LAYOUT: | ||
1081 | off = TXQ_FIX_PRIO_CONF; | ||
1082 | break; | ||
1083 | case TX_BW_CONTROL_NEW_LAYOUT: | ||
1084 | off = TXQ_FIX_PRIO_CONF_MOVED; | ||
1085 | break; | ||
1086 | } | ||
1087 | |||
1088 | if (off) { | ||
1089 | val = rdlp(mp, off); | ||
1090 | val &= ~(1 << txq->index); | ||
1091 | wrlp(mp, off, val); | ||
1092 | |||
1093 | /* | ||
1094 | * Configure WRR weight for this queue. | ||
1095 | */ | ||
1096 | |||
1097 | val = rdlp(mp, off); | ||
1098 | val = (val & ~0xff) | (weight & 0xff); | ||
1099 | wrlp(mp, TXQ_BW_WRR_CONF(txq->index), val); | ||
1100 | } | ||
1101 | } | ||
1102 | |||
1103 | 1069 | ||
1104 | /* mii management interface *************************************************/ | 1070 | /* mii management interface *************************************************/ |
1105 | static irqreturn_t mv643xx_eth_err_irq(int irq, void *dev_id) | 1071 | static irqreturn_t mv643xx_eth_err_irq(int irq, void *dev_id) |