<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On 27 Feb. 2018 00:34, "Aneesh Kumar K.V" <<a href="mailto:aneesh.kumar@linux.vnet.ibm.com">aneesh.kumar@linux.vnet.ibm.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">futex_detect_cmpxchg() does a cmpxchg_futex_value_locked on a NULL user addr to<br>
runtime detect whether architecture implements atomic cmpxchg for futex. POWER<br>
do implement the feature and hence we can enable the config instead of depending<br>
on runtime detection.<br>
<br>
We could possible enable this on everything. For now limitted to book3s_64<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">I think everything implements it? Might as well do it all at once.</div><div dir="auto"><br></div><div dir="auto">I wouldn't mind putting in an explicit null dereference test if we take this out.</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Nick</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Signed-off-by: Aneesh Kumar K.V <<a href="mailto:aneesh.kumar@linux.vnet.ibm.com">aneesh.kumar@linux.vnet.ibm.<wbr>com</a>><br>
---<br>
 arch/powerpc/platforms/<wbr>Kconfig.cputype | 1 +<br>
 1 file changed, 1 insertion(+)<br>
<br>
diff --git a/arch/powerpc/platforms/<wbr>Kconfig.cputype b/arch/powerpc/platforms/<wbr>Kconfig.cputype<br>
index a429d859f15d..31bc2bd5dfd1 100644<br>
--- a/arch/powerpc/platforms/<wbr>Kconfig.cputype<br>
+++ b/arch/powerpc/platforms/<wbr>Kconfig.cputype<br>
@@ -75,6 +75,7 @@ config PPC_BOOK3S_64<br>
        select ARCH_SUPPORTS_NUMA_BALANCING<br>
        select IRQ_WORK<br>
        select HAVE_KERNEL_XZ<br>
+       select HAVE_FUTEX_CMPXCHG if FUTEX<br>
<br>
 config PPC_BOOK3E_64<br>
        bool "Embedded processors"<br>
<font color="#888888">--<br>
2.14.3<br>
<br>
</font></blockquote></div><br></div></div></div>