diff options
author | Chris Packham <[email protected]> | 2019-08-30 09:52:24 +1200 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2019-09-17 08:59:13 +0200 |
commit | e07a4c79ca75bf41d73ba74c06f7220cd2741bc9 (patch) | |
tree | 1c439762a849dd0e785250034fcc2ee4857ee081 /tools/testing/selftests/bpf/prog_tests | |
parent | 41b630f41bf744b0eed92a53ff8c716cfc71920a (diff) |
watchdog: orion_wdt: use timer1 as a pretimeout
The orion watchdog can either reset the CPU or generate an interrupt.
The interrupt would be useful for debugging as it provides panic()
output about the watchdog expiry, however if the interrupt is used the
watchdog can't reset the CPU in the event of being stuck in a loop with
interrupts disabled or if the CPU is prevented from accessing memory
(e.g. an unterminated DMA).
The Armada SoCs have spare timers that aren't currently used by the
Linux kernel. We can use timer1 to provide a pre-timeout ahead of the
watchdog timer and provide the possibility of gathering debug before the
reset triggers.
Signed-off-by: Chris Packham <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions