* [PATCH][ATM]: [fore200e] make use tasklet configurable (2 of 2)
@ 2004-04-24 0:30 chas williams (contractor)
2004-04-26 4:36 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: chas williams (contractor) @ 2004-04-24 0:30 UTC (permalink / raw)
To: netdev; +Cc: davem
fore200e 0.3e part 2 of 2 for 2.6 kernels
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1810 -> 1.1811
# drivers/atm/Kconfig 1.10 -> 1.11
# drivers/atm/fore200e.c 1.25 -> 1.26
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 04/04/16 chas@relax.cmf.nrl.navy.mil 1.1811
# [ATM]: [fore200e] make use tasklet configurable
# --------------------------------------------
#
diff -Nru a/drivers/atm/Kconfig b/drivers/atm/Kconfig
--- a/drivers/atm/Kconfig Fri Apr 16 14:52:03 2004
+++ b/drivers/atm/Kconfig Fri Apr 16 14:52:03 2004
@@ -385,6 +385,15 @@
not have to supply an alternative one. They just say Y to "Use
default SBA-200E firmware", above.
+config ATM_FORE200E_USE_TASKLET
+ bool "Defer interrupt work to a tasklet"
+ depends on (PCI || SBUS) && (ATM_FORE200E_PCA || ATM_FORE200E_SBA)
+ default n
+ help
+ This defers work to be done by the interrupt handler to a
+ tasklet instead of hanlding everything at interrupt time. This
+ may improve the responsive of the host.
+
config ATM_FORE200E_TX_RETRY
int "Maximum number of tx retries"
depends on (PCI || SBUS) && (ATM_FORE200E_PCA || ATM_FORE200E_SBA)
diff -Nru a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c
--- a/drivers/atm/fore200e.c Fri Apr 16 14:52:03 2004
+++ b/drivers/atm/fore200e.c Fri Apr 16 14:52:03 2004
@@ -55,7 +55,7 @@
#include <asm/pgtable.h>
#endif
-#if 0 /* defer interrupt work to a tasklet */
+#if defined(CONFIG_ATM_FORE200E_USE_TASKLET) /* defer interrupt work to a tasklet */
#define FORE200E_USE_TASKLET
#endif
@@ -1354,6 +1354,7 @@
}
+#ifndef FORE200E_USE_TASKLET
static void
fore200e_irq(struct fore200e* fore200e)
{
@@ -1367,6 +1368,7 @@
fore200e_tx_irq(fore200e);
spin_unlock_irqrestore(&fore200e->q_lock, flags);
}
+#endif
static irqreturn_t
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-26 4:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-24 0:30 [PATCH][ATM]: [fore200e] make use tasklet configurable (2 of 2) chas williams (contractor)
2004-04-26 4:36 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).