hwtimer/hwtimer32: Remove task_resched_if_needed from watchdog help

Remove task_resched_if_needed, since we don't do any task scheduling
modifications. Just return instead.

This makes it work on F0 as well, where we don't have task_resched_if_needed

BUG=None
TEST=With series, see watchdog help work on any veyron
BRANCH=veyron

Change-Id: I93cce722b6d53008b015c7cdd56b7e77dc07bbff
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/242713
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
(cherry picked from commit 8363dfb14cb36fca412132ab14d2c9451de7d94e)
Reviewed-on: https://chromium-review.googlesource.com/250671
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
Alexandru M Stan
2015-01-22 16:56:16 -08:00
committed by ChromeOS Commit Bot
parent 59e366ef63
commit 3ae7240410
2 changed files with 4 additions and 8 deletions

View File

@@ -389,12 +389,10 @@ void IRQ_HANDLER(IRQ_WD)(void)
asm volatile("mov r0, lr\n"
"mov r1, sp\n"
/* Must push registers in pairs to keep 64-bit aligned
* stack for ARM EABI. This also conveninently saves
* R0=LR so we can pass it to task_resched_if_needed. */
* stack for ARM EABI. */
"push {r0, lr}\n"
"bl watchdog_check\n"
"pop {r0, lr}\n"
"b task_resched_if_needed\n");
"pop {r0,pc}\n");
}
const struct irq_priority IRQ_PRIORITY(IRQ_WD)
__attribute__((section(".rodata.irqprio")))

View File

@@ -204,12 +204,10 @@ void IRQ_HANDLER(IRQ_WD)(void)
asm volatile("mov r0, lr\n"
"mov r1, sp\n"
/* Must push registers in pairs to keep 64-bit aligned
* stack for ARM EABI. This also conveninently saves
* R0=LR so we can pass it to task_resched_if_needed. */
* stack for ARM EABI. */
"push {r0, lr}\n"
"bl watchdog_check\n"
"pop {r0, lr}\n"
"b task_resched_if_needed\n");
"pop {r0,pc}\n");
}
const struct irq_priority IRQ_PRIORITY(IRQ_WD)
__attribute__((section(".rodata.irqprio")))