summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xzaptel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/zaptel.c b/zaptel.c
index b8bab2e..9f7688a 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -260,9 +260,10 @@ of the next sample chunk's data (next time around the world).
#include "digits.h"
#if defined(CONFIG_ZAPTEL_MMX) || defined(ECHO_CAN_FP)
-/* XXX kernel_fpu_begin() is NOT exported properly, so we have to make
+/* XXX kernel_fpu_begin() is NOT exported properly (in 2.4), so we have to make
a local version. Somebody fix this! XXX */
+#ifndef LINUX26
static inline void __save_init_fpu( struct task_struct *tsk )
{
if ( cpu_has_fxsr ) {
@@ -284,6 +285,9 @@ static inline void zt_kernel_fpu_begin(void)
}
clts();
}
+#else
+#define zt_kernel_fpu_begin kernel_fpu_begin
+#endif /* LINUX26 */
#endif
static struct zt_timer {