summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-toradex-rt-3.14.28/0002-fix-build-with-rt-enabled.patch
diff options
context:
space:
mode:
authorBrandon Shibley <brandon.shibley@toradex.com>2016-03-23 15:10:48 -0700
committerMax Krummenacher <max.krummenacher@toradex.com>2016-03-30 18:07:26 +0200
commit3527f16741e49e0e07e7b5e329aa40dc81280f08 (patch)
treef41ac2e7f89a93832f1f0e6855b29665cbf1c9bb /recipes-kernel/linux/linux-toradex-rt-3.14.28/0002-fix-build-with-rt-enabled.patch
parent35e4f6a626cbd86fdfc4e9375d9a7d4dad02fcfe (diff)
linux-toradex-fsl-rt: Added a real-time kernel recipe
A new i.MX6 real-time kernel recipe was added with a modified PREEMPT_RT patch to accomodate the backports applied to the Toradex kernel. To select the kernel use a preferred provider variable in your configuration files (e.g. local.conf): PREFERRED_PROVIDER_virtual/kernel = "linux-toradex-fsl-rt" Signed-off-by: Brandon Shibley <brandon.shibley@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'recipes-kernel/linux/linux-toradex-rt-3.14.28/0002-fix-build-with-rt-enabled.patch')
-rw-r--r--recipes-kernel/linux/linux-toradex-rt-3.14.28/0002-fix-build-with-rt-enabled.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-toradex-rt-3.14.28/0002-fix-build-with-rt-enabled.patch b/recipes-kernel/linux/linux-toradex-rt-3.14.28/0002-fix-build-with-rt-enabled.patch
new file mode 100644
index 0000000..83652c9
--- /dev/null
+++ b/recipes-kernel/linux/linux-toradex-rt-3.14.28/0002-fix-build-with-rt-enabled.patch
@@ -0,0 +1,19 @@
+Fix build error when PREEMPT_RT_FULL is enabled
+
+Upstream-Status: Pending
+
+Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
+
+Index: git/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c
+===================================================================
+--- git.orig/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c
++++ git/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c
+@@ -3266,7 +3266,7 @@ gckOS_CreateMutex(
+ gcmkONERROR(gckOS_Allocate(Os, gcmSIZEOF(struct mutex), Mutex));
+
+ /* Initialize the mutex. */
+- mutex_init(*Mutex);
++ mutex_init((struct mutex*)*Mutex);
+
+ /* Return status. */
+ gcmkFOOTER_ARG("*Mutex=0x%X", *Mutex);