diff options
| author | Stuart Hayes <[email protected]> | 2014-04-29 22:55:02 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2014-04-30 10:34:51 +0000 |
| commit | 6c6c0d5a1c949d2e084706f9e5fb1fccc175b265 (patch) | |
| tree | 997d02e96adcbae3d211c107c567965630b6aa54 /lib/dump_stack.c | |
| parent | Merge branch 'clockevents/3.15-fixes' of git://git.linaro.org/people/daniel.l... (diff) | |
| download | kernel-6c6c0d5a1c949d2e084706f9e5fb1fccc175b265.tar.gz kernel-6c6c0d5a1c949d2e084706f9e5fb1fccc175b265.zip | |
hrtimer: Prevent all reprogramming if hang detected
If the last hrtimer interrupt detected a hang it sets hang_detected=1
and programs the clock event device with a delay to let the system
make progress.
If hang_detected == 1, we prevent reprogramming of the clock event
device in hrtimer_reprogram() but not in hrtimer_force_reprogram().
This can lead to the following situation:
hrtimer_interrupt()
hang_detected = 1;
program ce device to Xms from now (hang delay)
We have two timers pending:
T1 expires 50ms from now
T2 expires 5s from now
Now T1 gets canceled, which causes hrtimer_force_reprogram() to be
invoked, which in turn programs the clock event device to T2 (5
seconds from now).
Any hrtimer_start after that will not reprogram the hardware due to
hang_detected still being set. So we effectivly block all timers until
the T2 event fires and cleans up the hang situation.
Add a check for hang_detected to hrtimer_force_reprogram() which
prevents the reprogramming of the hang delay in the hardware
timer. The subsequent hrtimer_interrupt will resolve all outstanding
issues.
[ tglx: Rewrote subject and changelog and fixed up the comment in
hrtimer_force_reprogram() ]
Signed-off-by: Stuart Hayes <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: [email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions
