[12/12] fix thread_info.h ignoring __HAVE_THREAD_FUNCTIONS

From: William Lee Irwin III
Date: Sun Jun 13 2004 - 19:57:02 EST


* Check __HAVE_THREAD_FUNCTIONS in include/linux/thread_info.h (m68k)
This fixes the build on m68k; its thread_info functions need to be used.

Index: linux-2.5/include/linux/thread_info.h
===================================================================
--- linux-2.5.orig/include/linux/thread_info.h 2004-06-13 11:57:45.000000000 -0700
+++ linux-2.5/include/linux/thread_info.h 2004-06-13 12:08:57.000000000 -0700
@@ -21,6 +21,7 @@
#include <asm/thread_info.h>

#ifdef __KERNEL__
+#ifndef __HAVE_THREAD_FUNCTIONS

/*
* flag set/clear/test wrappers
@@ -87,6 +88,7 @@
clear_thread_flag(TIF_NEED_RESCHED);
}

-#endif
+#endif /* __HAVE_THREAD_FUNCTIONS */
+#endif /* __KERNEL__ */

#endif /* _LINUX_THREAD_INFO_H */
-
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/