* George Anzinger <[email protected]> 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 [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/