gpu: ion: Add explicit sync ioctl
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 13 Dec 2013 22:23:52 +0000 (14:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:38 +0000 (08:55 -0800)
commit0b9ec1cfd4aafbadfb5e053cd201d7c3944dec80
tree4cc024fa3e57d251f567cff97556b94a254546e8
parentbd5d6bdae118c49d194869ef757fd650dcabd33e
gpu: ion: Add explicit sync ioctl

This is deprecated in favor of using the dma_buf api which will
automatically sync a buffer to memory when it is mapped to a device.
However, that functionality is not ready, so this patch adds the
ability to sync a buffer explicitly.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion.h