• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/amd-catalyst/0004-Use-fpregs_active-instead-of-has_fpu.patch
Romain PerierRomain Perier committed 689ae6e404c23 Aug 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 7120f00015570a2e4d9b6532731960d509c71cba Mon Sep 17 00:00:00 2001
2
From: Alberto Milone <alberto.milone@canonical.com>
3
Date: Thu, 17 Sep 2015 15:48:30 +0200
4
Subject: [PATCH] Use fpregs_active instead of has_fpu
5
​
6
This is for Linux 4.2
7
​
8
Thanks to Tim Gardner for the patch.
9
​
10
Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
11
---
12
 common/lib/modules/fglrx/build_mod/firegl_public.c | 4 ++++
13
 1 file changed, 4 insertions(+)
14
​
15
diff --git a/common/lib/modules/fglrx/build_mod/firegl_public.c b/common/lib/modules/fglrx/build_mod/firegl_public.c
16
index 749ea51..4c1f9a5 100755
17
--- a/common/lib/modules/fglrx/build_mod/firegl_public.c
18
+++ b/common/lib/modules/fglrx/build_mod/firegl_public.c
19
@@ -6528,7 +6528,11 @@ void ATI_API_CALL KCL_fpu_begin(void)
20
     /* The thread structure is changed with the commit below for kernel 3.3:
21
      * https://github.com/torvalds/linux/commit/7e16838d94b566a17b65231073d179bc04d590c8
22
      */
23
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)
24
+    if (cur_task->thread.fpu.fpregs_active)
25
+#else
26
     if (cur_task->thread.fpu.has_fpu)
27
+#endif
28
 #else
29
     if (cur_task->thread.has_fpu)
30
 #endif
31
-- 
32
2.8.1
33
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.