aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <[email protected]>2013-05-26 17:31:38 +0300
committerIngo Molnar <[email protected]>2013-05-28 09:41:09 +0200
commit1af1717dbf96eba8a74a2d6a99e75a7795075a02 (patch)
tree6e77e8dc8c1ba17c10d41504663aa5302e41dc41 /net/lapb/lapb_out.c
parent3837a3cfe4a27836e0e9f207eb2d4f00b5a8fcba (diff)
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 <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions