diff options
author | scottl <scottl@FreeBSD.org> | 2012-08-31 09:42:46 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2012-08-31 09:42:46 +0000 |
commit | 8a0591e0dca9ef422328ee2546f4c3a48ac5b6a4 (patch) | |
tree | 992a9a4541c53c2ae2dba33bc314c565c89e9567 /sys/dev | |
parent | 80a343862a4ea0780552d7aaf07a17911476ccd8 (diff) | |
download | FreeBSD-src-8a0591e0dca9ef422328ee2546f4c3a48ac5b6a4.zip FreeBSD-src-8a0591e0dca9ef422328ee2546f4c3a48ac5b6a4.tar.gz |
Essentially revert r239912. The amr_periodic function hadn't been armed in
over 10 years and was dead code; the previous revision exposed it as such to
CLANG. The solution is to cull the whole thing.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/amr/amr.c | 38 | ||||
-rw-r--r-- | sys/dev/amr/amr_pci.c | 1 | ||||
-rw-r--r-- | sys/dev/amr/amrvar.h | 1 |
3 files changed, 0 insertions, 40 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index 412b7f5..de91c3e 100644 --- a/sys/dev/amr/amr.c +++ b/sys/dev/amr/amr.c @@ -139,11 +139,6 @@ static void amr_setup_ccb(void *arg, bus_dma_segment_t *segs, int nsegments, int static void amr_abort_load(struct amr_command *ac); /* - * Status monitoring - */ -static void amr_periodic(void *data); - -/* * Interface-specific shims */ static int amr_quartz_submit_command(struct amr_command *ac); @@ -348,11 +343,6 @@ amr_startup(void *arg) /* interrupts will be enabled before we do anything more */ sc->amr_state |= AMR_STATE_INTEN; - /* - * Start the timeout routine. - */ -/* callout_reset(&sc->amr_timeout, hz, amr_periodic, sc);*/ - return; } @@ -391,9 +381,6 @@ amr_free(struct amr_softc *sc) if (sc->amr_pass != NULL) device_delete_child(sc->amr_dev, sc->amr_pass); - /* cancel status timeout */ - callout_drain(&sc->amr_timeout); - /* throw away any command buffers */ while ((acc = TAILQ_FIRST(&sc->amr_cmd_clusters)) != NULL) { TAILQ_REMOVE(&sc->amr_cmd_clusters, acc, acc_link); @@ -959,31 +946,6 @@ out: /******************************************************************************** ******************************************************************************** - Status Monitoring - ******************************************************************************** - ********************************************************************************/ - -/******************************************************************************** - * Perform a periodic check of the controller status - */ -static void -amr_periodic(void *data) -{ - struct amr_softc *sc = (struct amr_softc *)data; - - debug_called(2); - - /* XXX perform periodic status checks here */ - - /* compensate for missed interrupts */ - amr_done(sc); - - /* reschedule */ - callout_reset(&sc->amr_timeout, hz, amr_periodic, sc); -} - -/******************************************************************************** - ******************************************************************************** Command Wrappers ******************************************************************************** ********************************************************************************/ diff --git a/sys/dev/amr/amr_pci.c b/sys/dev/amr/amr_pci.c index 29afaa3..f47d408 100644 --- a/sys/dev/amr/amr_pci.c +++ b/sys/dev/amr/amr_pci.c @@ -331,7 +331,6 @@ amr_pci_attach(device_t dev) */ mtx_init(&sc->amr_list_lock, "AMR List Lock", NULL, MTX_DEF); mtx_init(&sc->amr_hw_lock, "AMR HW Lock", NULL, MTX_DEF); - callout_init(&sc->amr_timeout, CALLOUT_MPSAFE); if ((error = amr_setup_mbox(sc)) != 0) goto out; diff --git a/sys/dev/amr/amrvar.h b/sys/dev/amr/amrvar.h index aff5ddb..7167839 100644 --- a/sys/dev/amr/amrvar.h +++ b/sys/dev/amr/amrvar.h @@ -256,7 +256,6 @@ struct amr_softc device_t amr_pass; int (*amr_cam_command)(struct amr_softc *sc, struct amr_command **acp); struct intr_config_hook amr_ich; /* wait-for-interrupts probe hook */ - struct callout amr_timeout; /* periodic status check */ int amr_allow_vol_config; int amr_linux_no_adapters; int amr_ld_del_supported; |