Skip to contentSkip to conversation

nkpod->watchdog_trigger per CPU?

Xenomai-core Jan Kiszka 3 participants 3 messages Apr 7, 2006

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi,

analysing the watchdog characteristics in our scenarios, I just wondered if it is SMP-aware (we have no SMP in use, it's a pure analytical concern).

The watchdog timeout is stored system-wide in nkpod->watchdog_trigger, but it is based on a per-CPU clock (TSC). Is the tick IRQ bound to a specific CPU in SMP scenarios so that this doesn't matter? Or am I just overseeing some detail?

Jan

#1 lore raw
Quoted 10 lines · Jan Kiszka

Hi,

analysing the watchdog characteristics in our scenarios, I just wondered if it is SMP-aware (we have no SMP in use, it's a pure analytical concern).

The watchdog timeout is stored system-wide in nkpod->watchdog_trigger, but it is based on a per-CPU clock (TSC). Is the tick IRQ bound to a specific CPU in SMP scenarios so that this doesn't matter? Or am I just overseeing some detail?

Good catch. This code was written before per-CPU ticking became the "official" implementation, so it needs to be updated.

Quoted 10 lines

Jan

------------------------------------------------------------------------

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.
#2 lore raw
Quoted 6 lines · Philippe Gerum
Quoted 5 lines · Jan Kiszka

Hi,

analysing the watchdog characteristics in our scenarios, I just wondered if it is SMP-aware (we have no SMP in use, it's a pure analytical concern).

Quoted 8 lines
Quoted 5 lines

The watchdog timeout is stored system-wide in nkpod->watchdog_trigger, but it is based on a per-CPU clock (TSC). Is the tick IRQ bound to a specific CPU in SMP scenarios so that this doesn't matter? Or am I just overseeing some detail?

Good catch. This code was written before per-CPU ticking became the "official" implementation, so it needs to be updated.

The watchdog is handled on a per-cpu basis with revision 901.

Signature · 1 line
					    Gilles Chanteperdrix.