gpu: nvgpu: Add wrapper nvgpu/sort.h

Add wrapper header file nvgpu/sort.h. It #includes <linux/sort.h>
on Linux.

JIRA NVGPU-13

Change-Id: I2393db830a15d5fbf0aa1fb9d55721a06061c09d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1461544
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2017-04-11 14:40:47 -07:00
committed by mobile promotions
parent ea24da728f
commit 7ef1eb8a10
4 changed files with 23 additions and 4 deletions

View File

@@ -24,7 +24,6 @@
#ifdef CONFIG_TEGRA_GK20A_NVHOST
#include <linux/nvhost.h>
#endif
#include <linux/sort.h>
#include <nvgpu/dma.h>
#include <nvgpu/timers.h>
@@ -33,6 +32,7 @@
#include <nvgpu/log.h>
#include <nvgpu/soc.h>
#include <nvgpu/atomic.h>
#include <nvgpu/sort.h>
#include "gk20a.h"
#include "debug_gk20a.h"

View File

@@ -25,7 +25,6 @@
#include <linux/dma-mapping.h>
#include <linux/firmware.h>
#include <linux/nvhost.h>
#include <linux/sort.h>
#include <trace/events/gk20a.h>
#include <nvgpu/dma.h>
@@ -34,6 +33,7 @@
#include <nvgpu/nvgpu_common.h>
#include <nvgpu/log.h>
#include <nvgpu/bsearch.h>
#include <nvgpu/sort.h>
#include "gk20a.h"
#include "kind_gk20a.h"

View 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_SORT_H__
#define __NVGPU_SORT_H__
#ifdef __KERNEL__
#include <linux/sort.h>
#endif
#endif

View File

@@ -11,8 +11,7 @@
* more details.
*/
#include <linux/sort.h>
#include <nvgpu/sort.h>
#include <nvgpu/pmuif/nvgpu_gpmu_cmdif.h>
#include <nvgpu/bios.h>
#include <nvgpu/kmem.h>