diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2018-05-04 17:24:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-05 23:26:47 +0300 |
commit | 47b82e88180c3c6db795a43373beab47cb073f7a (patch) | |
tree | 1ef365d5cbd94830da977107d8f11ebe466610fe /drivers/ide/ide-taskfile.c | |
parent | ce1e518190ea71d1ecf1a91a8b0794ba9bd78e89 (diff) | |
download | linux-47b82e88180c3c6db795a43373beab47cb073f7a.tar.xz |
ide: don't enable/disable interrupts in force threaded-IRQ mode
The interrupts are enabled/disabled so the interrupt handler can run
with enabled interrupts while serving the interrupt and not lose other
interrupts especially the timer tick.
If the system runs with force-threaded interrupts then there is no need
to enable the interrupts.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/ide-taskfile.c')
-rw-r--r-- | drivers/ide/ide-taskfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index 14bdab15a454..89b29028d315 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c @@ -405,7 +405,7 @@ static ide_startstop_t pre_task_out_intr(ide_drive_t *drive, return startstop; } - if ((drive->dev_flags & IDE_DFLAG_UNMASK) == 0) + if (!force_irqthreads && (drive->dev_flags & IDE_DFLAG_UNMASK) == 0) local_irq_disable(); ide_set_handler(drive, &task_pio_intr, WAIT_WORSTCASE); |