]>
Commit | Line | Data |
---|---|---|
41799625 PS |
1 | --- common/lib/modules/fglrx/build_mod/firegl_public.c.orig 2012-01-21 21:44:22.000000000 +0100 |
2 | +++ common/lib/modules/fglrx/build_mod/firegl_public.c 2012-01-21 22:21:45.126304477 +0100 | |
5be7cc2a | 3 | @@ -5791,36 +5791,7 @@ |
41799625 PS |
4 | */ |
5 | void ATI_API_CALL KCL_fpu_begin(void) | |
6 | { | |
7 | -#ifdef CONFIG_X86_64 | |
8 | kernel_fpu_begin(); | |
9 | -#else | |
d34186d6 | 10 | -#ifdef TS_USEDFPU |
5be7cc2a JR |
11 | - struct thread_info *cur_thread = current_thread_info(); |
12 | - struct task_struct *cur_task = get_current(); | |
41799625 | 13 | - preempt_disable(); |
5be7cc2a JR |
14 | - if (cur_thread->status & TS_USEDFPU) |
15 | - __save_init_fpu(cur_task); | |
41799625 PS |
16 | - else |
17 | - clts(); | |
d34186d6 JR |
18 | -#else |
19 | - /* TS_USEDFPU is removed in kernel 3.3+ and 3.2.8+ with the commit below: | |
20 | - * https://github.com/torvalds/linux/commit/f94edacf998516ac9d849f7bc6949a703977a7f3 | |
21 | - */ | |
22 | - struct task_struct *cur_task = current; | |
23 | - preempt_disable(); | |
24 | -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) | |
25 | - /* The thread structure is changed with the commit below for kernel 3.3: | |
26 | - * https://github.com/torvalds/linux/commit/7e16838d94b566a17b65231073d179bc04d590c8 | |
27 | - */ | |
28 | - if (cur_task->thread.fpu.has_fpu) | |
29 | -#else | |
30 | - if (cur_task->thread.has_fpu) | |
31 | -#endif | |
32 | - __save_init_fpu(cur_task); | |
33 | - else | |
34 | - clts(); | |
35 | -#endif | |
41799625 PS |
36 | -#endif |
37 | } | |
38 | ||
39 | /** \brief End of using FPU |