@@ -182,4 +182,6 @@ source "drivers/ras/Kconfig"
source "drivers/thunderbolt/Kconfig"
+source "drivers/cenalloc/Kconfig"
+
endmenu
@@ -161,3 +161,4 @@ obj-$(CONFIG_POWERCAP) += powercap/
obj-$(CONFIG_MCB) += mcb/
obj-$(CONFIG_RAS) += ras/
obj-$(CONFIG_THUNDERBOLT) += thunderbolt/
+obj-$(CONFIG_CENALLOC) += cenalloc/
new file mode 100644
@@ -0,0 +1,8 @@
+menuconfig CENALLOC
+ bool "cenalloc helper functions"
+ default n
+ select ANON_INODES
+ help
+ This option enables the helper allocation framework for drivers using
+ dma-buf buffer-sharing. It uses constraints of participating devices
+ to help find out best suited allocator.
new file mode 100644
@@ -0,0 +1,3 @@
+# Makefile for the cenalloc helper
+
+obj-y += cenalloc.o
Add the build files for cenalloc, the constraints-enabled allocation helper framework for dma-buf. Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Cc: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-media@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linaro-mm-sig@lists.linaro.org --- drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/cenalloc/Kconfig | 8 ++++++++ drivers/cenalloc/Makefile | 3 +++ 4 files changed, 14 insertions(+) create mode 100644 drivers/cenalloc/Kconfig create mode 100644 drivers/cenalloc/Makefile