If your application requires a hard real time response with guaranteed low
latency, you may need to encapsulate the realtime aspects in a device driver.
This is how devices that have realtime constraints such as serial ports and
disk drives are traditionally handled under most non-realtime operating
systems, including Linux.
The realtime response of a driver will still be affected by other kernel code
which may disable interrupts for unknown periods, increasing effective
interrupt latency. For some tools to help measure interrupt latency, see
http://www.drfruitcake.com/linux/irq_blk.html
If you need better latency guarantees than offerred by the kernel, use
Real-Time Linux to decouple the hard realtime portion from the rest of your
application. v3.0 includes support for PowerPC.
Also, search for
RTLinux.
The Real Time Application Interface is a kernel module which uses a hardware
abstraction layer to add typical features from an industrial realtime operating
system to Linux. It consists basically of an interrupt dispatcher and mainly
traps the peripherals interrupts and if necessary re-routes them to Linux.
RTAI is supported on a number of MPC8xx systems by people like
DENX.