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

From: Ingo Molnar
Date: Thu Feb 10 2005 - 15:43:22 EST



* George Anzinger <george@xxxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/