hrtimers with prio
RFC 1/1 hrtimers with prio
Thomas,
I know you had priorities once with the hrtimers, and then you took them out. I was playing a little here with putting them back in. When a timer is restarted, I have it store the priority of the process in the timer, so that, when the hrtimer interrupt goes off, it sets the hrtimer softirq priority to the priority of the timer.
With this patch, the following program will not lock up when run as root. Without the patch it will, because the lower priority busy guy will starve out the highres timer softirq.
http://www.kihontech.com/tests/rt/jitter_sig.c
(run test with -b to make busy loop)
So any thoughts on the below patch?
Daniel, I bet this patch will make that posixtestsuite test 10-1.c work.
-- Steve
This patch goes against 2.6.15-rt4-sr2
http://home.stny.rr.com/rostedt/patches/patch-2.6.15-rt4-sr2
include/linux/hrtimer.h +1 -0
@@ -70,6 +70,7 @@struct hrtimer_base *base;#ifdef CONFIG_HIGH_RES_TIMERS struct list_head list; +int prio;#endif };
kernel/hrtimer.c +58 -5
124 lines not on this page · raw message