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
5 void ATI_API_CALL KCL_fpu_begin(void)
11 - struct thread_info *cur_thread = current_thread_info();
12 - struct task_struct *cur_task = get_current();
14 - if (cur_thread->status & TS_USEDFPU)
15 - __save_init_fpu(cur_task);
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
22 - struct task_struct *cur_task = current;
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
28 - if (cur_task->thread.fpu.has_fpu)
30 - if (cur_task->thread.has_fpu)
32 - __save_init_fpu(cur_task);
39 /** \brief End of using FPU