Fix issue that pulseaudio freezes when pausing audio
[AGL/meta-agl.git] / meta-agl / recipes-core / glibc / glibc / arm / local-arm-futex.diff
1 Description: Lie about futex_atomic_cmpxchg_inatomic kernel support.
2  In past versions of glibc, we incorrectly assumed all ARM kernels
3  in all configurations supported futex_atomic_cmpxchg_inatomic. This
4  was clearly a lie, however it was a lie that we relied on, because
5  the fallback implementation appears to not play nicely with certain
6  applications like pulseaudio.  Restore the lie for kernels > 2.6.32
7  and plug our ears and scream "LA LA LA" about how wrong this is.
8 Author: Adam Conrad <adconrad@ubuntu.com>
9 Bug-Ubuntu: https://launchpad.net/bugs/1436162
10 Bug-Debian: https://bugs.debian.org/788799
11 Last-Update: 2015-03-25
12
13 --- glibc-2.21.orig/sysdeps/unix/sysv/linux/arm/kernel-features.h
14 +++ glibc-2.21/sysdeps/unix/sysv/linux/arm/kernel-features.h
15 @@ -37,7 +37,7 @@
16  /* The ARM kernel before 3.14.3 may or may not support
17     futex_atomic_cmpxchg_inatomic, depending on kernel
18     configuration.  */
19 -#if __LINUX_KERNEL_VERSION < 0x030E03
20 +#if __LINUX_KERNEL_VERSION < 0x020620
21  # undef __ASSUME_FUTEX_LOCK_PI
22  # undef __ASSUME_REQUEUE_PI
23  # undef __ASSUME_SET_ROBUST_LIST