mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Add wrapper nvgpu/atomic.h
Add wrapper header file nvgpu/atomic.h. It #includes <linux/atomic.h> on Linux. JIRA NVGPU-13 Change-Id: I6f2b3a04c964e7664b1f61b6073b643629bd99c5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1460792 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
7665421874
commit
44d5fb76aa
@@ -19,11 +19,11 @@
|
||||
#include <linux/llist.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/poll.h>
|
||||
#include <linux/atomic.h>
|
||||
|
||||
#include <nvgpu/bitops.h>
|
||||
#include <nvgpu/lock.h>
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include "gk20a/gk20a.h"
|
||||
#include "clk/clk_arb.h"
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/atomic.h>
|
||||
#include <linux/rbtree.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/spinlock.h>
|
||||
@@ -25,6 +24,7 @@
|
||||
#include <linux/stacktrace.h>
|
||||
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include "gk20a/gk20a.h"
|
||||
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <linux/atomic.h>
|
||||
|
||||
#include <nvgpu/atomic.h>
|
||||
#include <nvgpu/allocator.h>
|
||||
#include <nvgpu/kmem.h>
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/dma.h>
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include "gk20a.h"
|
||||
#include "debug_gk20a.h"
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <nvgpu/semaphore.h>
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include "channel_sync_gk20a.h"
|
||||
#include "gk20a.h"
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "gr_gk20a.h"
|
||||
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include <nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h>
|
||||
#include <nvgpu/hw/gk20a/hw_gr_gk20a.h>
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/soc.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include "gk20a.h"
|
||||
#include "debug_gk20a.h"
|
||||
|
||||
@@ -35,7 +35,6 @@ struct dbg_profiler_object_data;
|
||||
#include <linux/nvgpu.h>
|
||||
#include <linux/irqreturn.h>
|
||||
#include <linux/version.h>
|
||||
#include <linux/atomic.h>
|
||||
#include <linux/cdev.h>
|
||||
|
||||
#include "../../../arch/arm/mach-tegra/iomap.h"
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#include "gk20a.h"
|
||||
#include "mc_gk20a.h"
|
||||
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include <nvgpu/hw/gk20a/hw_mc_gk20a.h>
|
||||
|
||||
void mc_gk20a_nonstall_cb(struct work_struct *work)
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <nvgpu/timers.h>
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include <nvgpu/hw/gm20b/hw_ccsr_gm20b.h>
|
||||
#include <nvgpu/hw/gm20b/hw_ram_gm20b.h>
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "mc_gp10b.h"
|
||||
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include <nvgpu/hw/gp10b/hw_mc_gp10b.h>
|
||||
|
||||
void mc_gp10b_intr_enable(struct gk20a *g)
|
||||
|
||||
20
drivers/gpu/nvgpu/include/nvgpu/atomic.h
Normal file
20
drivers/gpu/nvgpu/include/nvgpu/atomic.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*/
|
||||
#ifndef __NVGPU_ATOMIC_H__
|
||||
#define __NVGPU_ATOMIC_H__
|
||||
|
||||
#ifdef __KERNEL__
|
||||
#include <linux/atomic.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/allocator.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include "gk20a/gk20a.h"
|
||||
#include "gk20a/mm_gk20a.h"
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/dma.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
|
||||
#include "vgpu/vgpu.h"
|
||||
#include "gk20a/ctxsw_trace_gk20a.h"
|
||||
|
||||
Reference in New Issue
Block a user