Skip to contentSkip to conversation

add set_curr_timer to high_res run_queue

PATCH New Steven Rostedt 1 participant 1 message Jan 24, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add set_curr_timer to high_res run_queue

Ingo,

Here's the cause of my crash.

-- Steve

kernel/hrtimer.c +2 -0
Index: linux-2.6.15-rt12/kernel/hrtimer.c
===================================================================
@@ -877,6 +877,7 @@
 		timer = list_entry(base->expired.next, struct hrtimer, list);
 		fn = timer->function;
 		data = timer->data;
+		set_curr_timer(base, timer);
 		timer->state = HRTIMER_RUNNING;
 		list_del(&timer->list);
 		spin_unlock_irq(&base->lock);
@@ -902,6 +903,7 @@
 		else
 			timer->state = HRTIMER_EXPIRED;
 	}
+	set_curr_timer(base, NULL);
 	spin_unlock_irq(&base->lock);
 
 	wake_up_timer_waiters(base);