diff options
| author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-09-09 07:13:49 -0400 |
|---|---|---|
| committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-09-12 01:28:45 -0400 |
| commit | 0d41ec8dbf6766ae2f2b9622cc125be118638ccc (patch) | |
| tree | c884a005a6195e132c467dd88dac1de16a37b0f5 | |
| parent | a17686c462441a01973c18c4c47986a320a5ebe3 (diff) | |
clocksource/drivers/timer-atmel-pit: Remove uselesss WARN_ON_ONCE
IRQ handlers are running with IRQ disabled for a while, remove wrong
comment and useless test.
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
| -rw-r--r-- | drivers/clocksource/timer-atmel-pit.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c index da7e6d4eef4d..91cf04704ed1 100644 --- a/drivers/clocksource/timer-atmel-pit.c +++ b/drivers/clocksource/timer-atmel-pit.c | |||
| @@ -149,12 +149,6 @@ static irqreturn_t at91sam926x_pit_interrupt(int irq, void *dev_id) | |||
| 149 | { | 149 | { |
| 150 | struct pit_data *data = dev_id; | 150 | struct pit_data *data = dev_id; |
| 151 | 151 | ||
| 152 | /* | ||
| 153 | * irqs should be disabled here, but as the irq is shared they are only | ||
| 154 | * guaranteed to be off if the timer irq is registered first. | ||
| 155 | */ | ||
| 156 | WARN_ON_ONCE(!irqs_disabled()); | ||
| 157 | |||
| 158 | /* The PIT interrupt may be disabled, and is shared */ | 152 | /* The PIT interrupt may be disabled, and is shared */ |
| 159 | if (clockevent_state_periodic(&data->clkevt) && | 153 | if (clockevent_state_periodic(&data->clkevt) && |
| 160 | (pit_read(data->base, AT91_PIT_SR) & AT91_PIT_PITS)) { | 154 | (pit_read(data->base, AT91_PIT_SR) & AT91_PIT_PITS)) { |
