From acdf6100407bc743bab02f699eedf629b4eb4d9d Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Tue, 28 Sep 2010 08:55:21 -0400 Subject: Bugfix: infinite loop upon timer disabling. --- litmus/sched_npsf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litmus/sched_npsf.c b/litmus/sched_npsf.c index b322b0a5b362..25c71458fa2d 100644 --- a/litmus/sched_npsf.c +++ b/litmus/sched_npsf.c @@ -1019,7 +1019,7 @@ void npsf_hrtimers_cleanup(void) { int cpu; cpu_entry_t *entry; - int redo = 0; + int redo; if (!atomic_read(&timers_activated)) return; @@ -1028,6 +1028,7 @@ void npsf_hrtimers_cleanup(void) /* prevent the firing of the timer on this cpu */ do { + redo = 0; for_each_online_cpu(cpu) { entry = &per_cpu(npsf_cpu_entries, cpu); -- cgit v1.2.2