From: Michael S. Tsirkin Date: Sun, 26 May 2013 14:31:38 +0000 (+0300) Subject: powerpc: uaccess s/might_sleep/might_fault/ X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~60^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1af1717dbf96eba8a74a2d6a99e75a7795075a02;p=pandora-kernel.git powerpc: uaccess s/might_sleep/might_fault/ The only reason uaccess routines might sleep is if they fault. Make this explicit. Arnd Bergmann suggested that the following code if (!is_kernel_addr((unsigned long)__pu_addr)) might_fault(); can be further simplified by adding a version of might_fault that includes the kernel addr check. Will be considered as a further optimization in future. Signed-off-by: Michael S. Tsirkin Acked-by: Benjamin Herrenschmidt Signed-off-by: Peter Zijlstra Cc: Linus Torvalds Cc: Andrew Morton Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1369577426-26721-7-git-send-email-mst@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed