Summary:ASTERISK-04947: [PATCH] CONFIG_PREEMPT_RT support for zaptel
Reporter:mtaht (mtaht)Labels:
Date Opened:2005-08-31 14:11:00Date Closed:2008-06-07 11:01:53
Versions:Frequency of
Environment:Attachments:( 0) zaptel.rt.patch
Description:Ingo's latest series of full pre-emption patches make some minor modifications to the declaration syntax of spinlocks. The attached patch should compile correctly on both mainline Linux kernels and "patched for RT" kernels.

Whether or not it actually works for any zaptel hardware other than ztdummy is a matter of testing.

It may be that raw spinlocks are required for most of the low level zaptel drivers - syntactically that's just a change to using DEFINE_RAW_SPINLOCK.


see http://people.redhat.com/mingo/realtime-preempt/ for the RT patch

With CONFIG_PREEMPT_RT turned on,  you can selectively tune interrupt handling for RT by getting the pid of an IRQ handler, and using chrt on it.  
Comments:By: Kevin P. Fleming (kpfleming) 2005-08-31 17:44:56

Committed to CVS HEAD and CVS v1-0, since it's a minor syntax change (normally we would not make changes to support non-mainline kernels, but this one has a good chance of getting into mainline anyway). Thanks!

By: Digium Subversion (svnbot) 2008-06-07 11:01:46

Repository: dahdi
Revision: 751

U   trunk/tor2.c
U   trunk/torisa.c
U   trunk/zaptel.c
U   trunk/ztd-eth.c
U   trunk/ztd-loc.c
U   trunk/ztdummy.c
U   trunk/ztdynamic.c

r751 | kpfleming | 2008-06-07 11:01:43 -0500 (Sat, 07 Jun 2008) | 2 lines

make spinlock definitions compatible with -RT kernel patches (and future syntax in mainline kernel, probably) (issue ASTERISK-4947)



By: Digium Subversion (svnbot) 2008-06-07 11:01:53

Repository: dahdi
Revision: 752

U   branches/v1-0/tor2.c
U   branches/v1-0/torisa.c
U   branches/v1-0/zaptel.c
U   branches/v1-0/ztd-eth.c
U   branches/v1-0/ztdummy.c
U   branches/v1-0/ztdynamic.c

r752 | kpfleming | 2008-06-07 11:01:52 -0500 (Sat, 07 Jun 2008) | 2 lines

make spinlock definitions compatible with -RT kernel patches (and future kernel syntax) (issue ASTERISK-4947)