summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
authorcitats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-08 20:18:51 +0000
committercitats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-04-08 20:18:51 +0000
commit8928b1da85ebc7fb61abc2dae9f41f5c39c41599 (patch)
tree323f90c483f329a93c5dcec11a8a77b07384bb5f /zaptel.c
parent272eb4db7f97f6899caa64efa649fe1456d41336 (diff)
Fix MMX in zaptel with 2.6 kernels (bug 1364)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@350 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.c')
-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 {