[PATCH] PREEMPT_RT vermagic

From: Daniel Walker
Date: Tue Aug 30 2005 - 17:43:06 EST



Ingo,
This patch adds a vermagic hook so PREEMPT_RT modules can be
distinguished from PREEMPT_DESKTOP modules.

Signed-off-by: Daniel Walker <dwalker@xxxxxxxxxx>
Index: linux-2.6.10/include/linux/vermagic.h
===================================================================
--- linux-2.6.10.orig/include/linux/vermagic.h 2004-12-24 21:35:50.000000000 +0000
+++ linux-2.6.10/include/linux/vermagic.h 2005-08-23 17:35:08.000000000 +0000
@@ -8,7 +8,11 @@
#define MODULE_VERMAGIC_SMP ""
#endif
#ifdef CONFIG_PREEMPT
-#define MODULE_VERMAGIC_PREEMPT "preempt "
+# ifdef CONFIG_PREEMPT_RT
+# define MODULE_VERMAGIC_PREEMPT "preempt_rt "
+# else
+# define MODULE_VERMAGIC_PREEMPT "preempt "
+# endif
#else
#define MODULE_VERMAGIC_PREEMPT ""
#endif


-
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/