Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256168
b: refs/heads/master
c: 135d23d
h: refs/heads/master
v: v3
  • Loading branch information
Wang Shaoyan authored and David S. Miller committed Jul 8, 2011
1 parent 7fded8d commit e2f22e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 498d8e236304a62a2774d7264bdff2c6e8102b5b
refs/heads/master: 135d23d66c53ade614c288d422f4c4b3205eb201
11 changes: 1 addition & 10 deletions trunk/drivers/atm/ambassador.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ static void fill_rx_pool (amb_dev * dev, unsigned char pool,
return;
}

// top up all RX pools (can also be called as a bottom half)
// top up all RX pools
static void fill_rx_pools (amb_dev * dev) {
unsigned char pool;

Expand Down Expand Up @@ -872,11 +872,7 @@ static irqreturn_t interrupt_handler(int irq, void *dev_id) {
++irq_work;

if (irq_work) {
#ifdef FILL_RX_POOLS_IN_BH
schedule_work (&dev->bh);
#else
fill_rx_pools (dev);
#endif

PRINTD (DBG_IRQ, "work done: %u", irq_work);
} else {
Expand Down Expand Up @@ -2154,11 +2150,6 @@ static void setup_dev(amb_dev *dev, struct pci_dev *pci_dev)
dev->tx_avail = ATM_OC3_PCR;
dev->rx_avail = ATM_OC3_PCR;

#ifdef FILL_RX_POOLS_IN_BH
// initialise bottom half
INIT_WORK(&dev->bh, (void (*)(void *)) fill_rx_pools, dev);
#endif

// semaphore for txer/rxer modifications - we cannot use a
// spinlock as the critical region needs to switch processes
mutex_init(&dev->vcc_sf);
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/atm/ambassador.h
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,6 @@ struct amb_dev {
u32 iobase;
u32 * membase;

#ifdef FILL_RX_POOLS_IN_BH
struct work_struct bh;
#endif

amb_cq cq;
amb_txq txq;
amb_rxq rxq[NUM_RX_POOLS];
Expand Down

0 comments on commit e2f22e0

Please sign in to comment.