[PATCH RT] add set_curr_timer to high_res run_queue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ingo,

Here's the cause of my crash.

-- Steve

Signed-off-by: Steven Rostedt <[email protected]>

Index: linux-2.6.15-rt12/kernel/hrtimer.c
===================================================================
--- linux-2.6.15-rt12.orig/kernel/hrtimer.c	2006-01-23 14:00:27.000000000 -0500
+++ linux-2.6.15-rt12/kernel/hrtimer.c	2006-01-24 08:53:44.000000000 -0500
@@ -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);


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux