Embedded 版 (精华区)
发信人: he (无情的雨), 信区: Embedded_system
标 题: linux for ppc chapter 15
发信站: 哈工大紫丁香 (2001年06月04日11:08:23 星期一), 站内信件
----------------------------------------------------------------------------
----
15. Real Time Response
Check out MontaVista's Linux Real-Time characterisation projects at http://w
ww.mvista.com/realtime
15.1 Soft
For many applications a soft real time user space thread is adequate, partic
ularly if you minimise kernel scheduling latency with the patches at: http:/
/www.redhat.com/~mingo/lowlatency-patches/
Also, see: http://lists.linuxppc.org/listarcs/linuxppc-embedded/199912/msg00
006.html
15.2 Hard
If your application requires a hard real time response with guaranteed low l
atency, you may need to encapsulate the real time aspects in a device driver
. This is how devices which have real time constraints such as serial ports
and disk drives are traditionally handled under most non-realtime operating
systems, including Linux.
Interrupt Latency
Interrupt Latency
The real-time response of a driver will still be affected by other kernel co
de which may disable interrupts for unknown periods, increasing effective in
terrupt latency. For some tools to help measure interrupt latency, see: http
://www.drfruitcake.com/linux/irq_blk.html
RTLinux - Real Time Linux
http://www.rtlinux.com/
If you need better latency guarantees than offerred by the kernel, use Real
Time Linux to decouple the hard real time portion from the rest of your appl
ication. v3.0 includes support for PowerPC.
Also, search for RTLinux.
RTAI - Real Time Application Interface
http://www.aero.polimi.it/projects/rtai/
The Real Time Application Interface is a kernel module which uses a hardware
abstraction layer to add typical features from an industrial real time oper
ating system to Linux. It consists basically of an interrupt dispatcher and
mainly traps the peripherals interrupts and if necessary re-routes them to L
inux.
RTAI is supported on a number of MPC8xx systems by people like Denx.
----------------------------------------------------------------------------
----
--
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.235.250]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.449毫秒