diff options
author | Dave Hansen <[email protected]> | 2015-06-07 11:37:04 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-06-09 12:24:32 +0200 |
commit | b0e9b09b3bd64e67bba862e238d3757b2482b6de (patch) | |
tree | 8f5129ba0ba7e23bd4d913388885cd49c57045f6 /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | |
parent | cd4996dce18b619bd7b3acf75c91f49c77f05a97 (diff) |
x86: Make is_64bit_mm() widely available
The uprobes code has a nice helper, is_64bit_mm(), that consults
both the runtime and compile-time flags for 32-bit support.
Instead of reinventing the wheel, pull it in to an x86 header so
we can use it for MPX.
I prefer passing the 'mm' around to test_thread_flag(TIF_IA32)
because it makes it explicit where the context is coming from.
Signed-off-by: Dave Hansen <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Oleg Nesterov <[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 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions