diff options
author | citats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-04-08 20:18:51 +0000 |
---|---|---|
committer | citats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-04-08 20:18:51 +0000 |
commit | 8928b1da85ebc7fb61abc2dae9f41f5c39c41599 (patch) | |
tree | 323f90c483f329a93c5dcec11a8a77b07384bb5f /zaptel.c | |
parent | 272eb4db7f97f6899caa64efa649fe1456d41336 (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-x | zaptel.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 { |