Re: [patch] Real-Time Preemption, -RT-2.6.11-rc3-V0.7.38-01

Ingo Molnar
2005-02-10T20:40:50Z

* George Anzinger <george@mvista.com> wrote:

> If I want to write a patch that will work with or without the RT patch
> applied is the following enough?
>
> #ifndef RAW_SPIN_LOCK_UNLOCKED
> typedef raw_spinlock_t spinlock_t
> #define RAW_SPIN_LOCK_UNLOCKED SPIN_LOCK_UNLOCKED
> #endif

yeah. (but you should rather use DEFINE_SPINLOCK/DEFINE_RAW_SPINLOCK)

Ingo