mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Add wrapper nvgpu/kref.h
Add wrapper header file nvgpu/kref.h. It #includes <linux/kref.h> in Linux. JIRA NVGPU-13 Change-Id: Ib8b002268b1960646986551ecb9f286e1e21e7f6 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1463770 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
001f19af43
commit
26deb61b3b
@@ -25,6 +25,7 @@
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/kref.h>
|
||||
|
||||
#include "gk20a/gk20a.h"
|
||||
#include "clk/clk_arb.h"
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
#ifndef _GK20A_FENCE_H_
|
||||
#define _GK20A_FENCE_H_
|
||||
|
||||
#include <linux/kref.h>
|
||||
#include <linux/wait.h>
|
||||
|
||||
#include <nvgpu/kref.h>
|
||||
|
||||
struct platform_device;
|
||||
struct sync_timeline;
|
||||
struct sync_fence;
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
#include "tsg_gk20a.h"
|
||||
#include "debug_gk20a.h"
|
||||
|
||||
#include <nvgpu/kref.h>
|
||||
|
||||
#define MAX_RUNLIST_BUFFERS 2
|
||||
|
||||
#define FIFO_INVAL_ENGINE_ID ((u32)~0)
|
||||
|
||||
@@ -42,6 +42,7 @@ struct dbg_profiler_object_data;
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/pramin.h>
|
||||
#include <nvgpu/acr/nvgpu_acr.h>
|
||||
#include <nvgpu/kref.h>
|
||||
|
||||
#include "clk_gk20a.h"
|
||||
#include "ce2_gk20a.h"
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <nvgpu/allocator.h>
|
||||
#include <nvgpu/list.h>
|
||||
#include <nvgpu/rbtree.h>
|
||||
#include <nvgpu/kref.h>
|
||||
|
||||
#ifdef CONFIG_ARM64
|
||||
#define outer_flush_range(a, b)
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/semaphore.h>
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/kref.h>
|
||||
|
||||
#include "../drivers/staging/android/sync.h"
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#define __TSG_GK20A_H_
|
||||
|
||||
#include <nvgpu/lock.h>
|
||||
#include <nvgpu/kref.h>
|
||||
|
||||
#define NVGPU_INVALID_TSG_ID (-1)
|
||||
|
||||
|
||||
20
drivers/gpu/nvgpu/include/nvgpu/kref.h
Normal file
20
drivers/gpu/nvgpu/include/nvgpu/kref.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_KREF_H__
|
||||
#define __NVGPU_KREF_H__
|
||||
|
||||
#ifdef __KERNEL__
|
||||
#include <linux/kref.h>
|
||||
#endif
|
||||
|
||||
#endif /* __NVGPU_KREF_H__ */
|
||||
@@ -14,7 +14,6 @@
|
||||
#ifndef SEMAPHORE_GK20A_H
|
||||
#define SEMAPHORE_GK20A_H
|
||||
|
||||
#include <linux/kref.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/delay.h>
|
||||
|
||||
@@ -22,6 +21,7 @@
|
||||
#include <nvgpu/allocator.h>
|
||||
#include <nvgpu/atomic.h>
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/kref.h>
|
||||
|
||||
#include "gk20a/gk20a.h"
|
||||
#include "gk20a/mm_gk20a.h"
|
||||
|
||||
Reference in New Issue
Block a user