From d8fd0e64678997b535c3208ce8cc081b1cac7fa9 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Fri, 11 Nov 2016 14:35:54 -0800 Subject: gpu: nvgpu: Add timeout API Add a timeout API to nvgpu since this is a common operation done all across the nvgpu driver. Also add two new directories for this common code: drivers/gpu/nvgpu/common drivers/gpu/nvgpu/include/nvgpu The common directory is for common C code. The include directory is for common include files. Bug 1799159 Change-Id: I8b710eecaa75c0707df83f859fb28484525185a6 Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/1255864 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/Makefile.nvgpu | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/Makefile.nvgpu') diff --git a/drivers/gpu/nvgpu/Makefile.nvgpu b/drivers/gpu/nvgpu/Makefile.nvgpu index 96cdfb0a..71077386 100644 --- a/drivers/gpu/nvgpu/Makefile.nvgpu +++ b/drivers/gpu/nvgpu/Makefile.nvgpu @@ -1,10 +1,11 @@ GCOV_PROFILE := y -ccflags-y += -Idrivers/gpu/nvgpu +ccflags-y += -Idrivers/gpu/nvgpu/include ccflags-y += -Idrivers/video/tegra/host ccflags-y += -Idrivers/devfreq ccflags-y += -I../nvgpu/include ccflags-y += -I../nvgpu/include/uapi +ccflags-y += -I../nvgpu/drivers/gpu/nvgpu/include ccflags-y += -Wno-multichar ccflags-y += -Werror ccflags-y += -Wno-error=cpp @@ -25,8 +26,9 @@ endif obj-$(CONFIG_GK20A) := nvgpu.o nvgpu-y := \ - gk20a/gk20a.o \ + common/linux/timers.o \ nvgpu_common.o \ + gk20a/gk20a.o \ gk20a/sched_gk20a.o \ gk20a/as_gk20a.o \ gk20a/ctrl_gk20a.o \ -- cgit v1.2.2