diff options
author | Todd Kjos <tkjos@android.com> | 2019-02-08 21:35:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-12 12:43:57 +0300 |
commit | 8ced0c6231ead26eca8cb416dcb7cc1c2cdd41d8 (patch) | |
tree | 367bf43c0df5e7bee2ca62a7939062d581f465ff /drivers/android/Kconfig | |
parent | 1a7c3d9bb7a926e88d5f57643e75ad1abfc55013 (diff) | |
download | linux-8ced0c6231ead26eca8cb416dcb7cc1c2cdd41d8.tar.xz |
binder: add functions to copy to/from binder buffers
Avoid vm_area when copying to or from binder buffers.
Instead, new copy functions are added that copy from
kernel space to binder buffer space. These use
kmap_atomic() and kunmap_atomic() to create temporary
mappings and then memcpy() is used to copy within
that page.
Also, kmap_atomic() / kunmap_atomic() use the appropriate
cache flushing to support VIVT cache architectures.
Allow binder to build if CPU_CACHE_VIVT is defined.
Several uses of the new functions are added here. More
to follow in subsequent patches.
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android/Kconfig')
-rw-r--r-- | drivers/android/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/android/Kconfig b/drivers/android/Kconfig index 4c190f8d1f4c..6fdf2abe4598 100644 --- a/drivers/android/Kconfig +++ b/drivers/android/Kconfig @@ -10,7 +10,7 @@ if ANDROID config ANDROID_BINDER_IPC bool "Android Binder IPC Driver" - depends on MMU && !CPU_CACHE_VIVT + depends on MMU default n ---help--- Binder is used in Android for both communication between processes, |