diff options
Diffstat (limited to 'drivers/block/floppy.c')
-rw-r--r-- | drivers/block/floppy.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 76a08236430a..b0b00d70c166 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -1030,37 +1030,6 @@ static int fd_wait_for_completion(unsigned long delay, timeout_fn function) | |||
1030 | return 0; | 1030 | return 0; |
1031 | } | 1031 | } |
1032 | 1032 | ||
1033 | static DEFINE_SPINLOCK(floppy_hlt_lock); | ||
1034 | static int hlt_disabled; | ||
1035 | static void floppy_disable_hlt(void) | ||
1036 | { | ||
1037 | unsigned long flags; | ||
1038 | |||
1039 | WARN_ONCE(1, "floppy_disable_hlt() scheduled for removal in 2012"); | ||
1040 | spin_lock_irqsave(&floppy_hlt_lock, flags); | ||
1041 | if (!hlt_disabled) { | ||
1042 | hlt_disabled = 1; | ||
1043 | #ifdef HAVE_DISABLE_HLT | ||
1044 | disable_hlt(); | ||
1045 | #endif | ||
1046 | } | ||
1047 | spin_unlock_irqrestore(&floppy_hlt_lock, flags); | ||
1048 | } | ||
1049 | |||
1050 | static void floppy_enable_hlt(void) | ||
1051 | { | ||
1052 | unsigned long flags; | ||
1053 | |||
1054 | spin_lock_irqsave(&floppy_hlt_lock, flags); | ||
1055 | if (hlt_disabled) { | ||
1056 | hlt_disabled = 0; | ||
1057 | #ifdef HAVE_DISABLE_HLT | ||
1058 | enable_hlt(); | ||
1059 | #endif | ||
1060 | } | ||
1061 | spin_unlock_irqrestore(&floppy_hlt_lock, flags); | ||
1062 | } | ||
1063 | |||
1064 | static void setup_DMA(void) | 1033 | static void setup_DMA(void) |
1065 | { | 1034 | { |
1066 | unsigned long f; | 1035 | unsigned long f; |
@@ -1105,7 +1074,6 @@ static void setup_DMA(void) | |||
1105 | fd_enable_dma(); | 1074 | fd_enable_dma(); |
1106 | release_dma_lock(f); | 1075 | release_dma_lock(f); |
1107 | #endif | 1076 | #endif |
1108 | floppy_disable_hlt(); | ||
1109 | } | 1077 | } |
1110 | 1078 | ||
1111 | static void show_floppy(void); | 1079 | static void show_floppy(void); |
@@ -1707,7 +1675,6 @@ irqreturn_t floppy_interrupt(int irq, void *dev_id) | |||
1707 | fd_disable_dma(); | 1675 | fd_disable_dma(); |
1708 | release_dma_lock(f); | 1676 | release_dma_lock(f); |
1709 | 1677 | ||
1710 | floppy_enable_hlt(); | ||
1711 | do_floppy = NULL; | 1678 | do_floppy = NULL; |
1712 | if (fdc >= N_FDC || FDCS->address == -1) { | 1679 | if (fdc >= N_FDC || FDCS->address == -1) { |
1713 | /* we don't even know which FDC is the culprit */ | 1680 | /* we don't even know which FDC is the culprit */ |
@@ -1856,8 +1823,6 @@ static void floppy_shutdown(unsigned long data) | |||
1856 | show_floppy(); | 1823 | show_floppy(); |
1857 | cancel_activity(); | 1824 | cancel_activity(); |
1858 | 1825 | ||
1859 | floppy_enable_hlt(); | ||
1860 | |||
1861 | flags = claim_dma_lock(); | 1826 | flags = claim_dma_lock(); |
1862 | fd_disable_dma(); | 1827 | fd_disable_dma(); |
1863 | release_dma_lock(flags); | 1828 | release_dma_lock(flags); |
@@ -4508,7 +4473,6 @@ static void floppy_release_irq_and_dma(void) | |||
4508 | #if N_FDC > 1 | 4473 | #if N_FDC > 1 |
4509 | set_dor(1, ~8, 0); | 4474 | set_dor(1, ~8, 0); |
4510 | #endif | 4475 | #endif |
4511 | floppy_enable_hlt(); | ||
4512 | 4476 | ||
4513 | if (floppy_track_buffer && max_buffer_sectors) { | 4477 | if (floppy_track_buffer && max_buffer_sectors) { |
4514 | tmpsize = max_buffer_sectors * 1024; | 4478 | tmpsize = max_buffer_sectors * 1024; |