summaryrefslogtreecommitdiff
path: root/package/kodi/patches/patch-xbmc_platform_linux_CPUInfoLinux_cpp
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-02-27 11:57:31 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-02-27 11:59:23 +0100
commit92ab1f5a9b8413e15b8cc6f5a896354f88a47f87 (patch)
tree54e6013ba9d35ad4b1b60eb87be1f90e6741aa98 /package/kodi/patches/patch-xbmc_platform_linux_CPUInfoLinux_cpp
parent884e156e1db5f92555b04bd150f64392d4c47c1c (diff)
kodi: update to Matrix with all dependencies
Diffstat (limited to 'package/kodi/patches/patch-xbmc_platform_linux_CPUInfoLinux_cpp')
-rw-r--r--package/kodi/patches/patch-xbmc_platform_linux_CPUInfoLinux_cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/kodi/patches/patch-xbmc_platform_linux_CPUInfoLinux_cpp b/package/kodi/patches/patch-xbmc_platform_linux_CPUInfoLinux_cpp
new file mode 100644
index 000000000..afd13ea30
--- /dev/null
+++ b/package/kodi/patches/patch-xbmc_platform_linux_CPUInfoLinux_cpp
@@ -0,0 +1,31 @@
+--- xbmc-19.3-Matrix.orig/xbmc/platform/linux/CPUInfoLinux.cpp 2021-10-24 12:09:58.000000000 +0200
++++ xbmc-19.3-Matrix/xbmc/platform/linux/CPUInfoLinux.cpp 2022-02-26 13:55:19.357313177 +0100
+@@ -18,10 +18,7 @@
+ #include <sstream>
+ #include <vector>
+
+-#if (defined(__arm__) && defined(HAS_NEON)) || defined(__aarch64__)
+-#include <asm/hwcap.h>
+-#include <sys/auxv.h>
+-#elif defined(__i386__) || defined(__x86_64__)
++#if defined(__i386__) || defined(__x86_64__)
+ #include <cpuid.h>
+ #endif
+
+@@ -252,16 +249,6 @@ CCPUInfoLinux::CCPUInfoLinux()
+ }
+ #endif
+
+-#if defined(HAS_NEON) && defined(__arm__)
+- if (getauxval(AT_HWCAP) & HWCAP_NEON)
+- m_cpuFeatures |= CPU_FEATURE_NEON;
+-#endif
+-
+-#if defined(HAS_NEON) && defined(__aarch64__)
+- if (getauxval(AT_HWCAP) & HWCAP_ASIMD)
+- m_cpuFeatures |= CPU_FEATURE_NEON;
+-#endif
+-
+ // Set MMX2 when SSE is present as SSE is a superset of MMX2 and Intel doesn't set the MMX2 cap
+ if (m_cpuFeatures & CPU_FEATURE_SSE)
+ m_cpuFeatures |= CPU_FEATURE_MMX2;