mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: created os-agnostic sim header.
added a os-agnostic sim.h header which could be included in by any platform, moved out os specific headers to nvgpu/linux. JIRA VQRM-2368 Change-Id: I3861bfa75a6b8d2d909bc7223467fd68c208275b Signed-off-by: Antony Clince Alex <aalex@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1702816 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
50d1b0c72b
commit
7e66f2a63d
@@ -24,11 +24,10 @@
|
||||
#include <nvgpu/nvgpu_mem.h>
|
||||
#include <nvgpu/dma.h>
|
||||
#include <nvgpu/hw_sim_pci.h>
|
||||
#include <nvgpu/sim.h>
|
||||
#include "gk20a/gk20a.h"
|
||||
#include "os_linux.h"
|
||||
#include "module.h"
|
||||
#include "sim.h" /* will be removed in subsequent patches */
|
||||
#include "sim_pci.h"/* will be removed in subsequent patches */
|
||||
|
||||
static bool _nvgpu_pci_is_simulation(struct gk20a *g, u32 sim_base)
|
||||
{
|
||||
@@ -50,7 +49,6 @@ void nvgpu_remove_sim_support_linux_pci(struct gk20a *g)
|
||||
is_simulation = _nvgpu_pci_is_simulation(g, sim_r());
|
||||
|
||||
if (!is_simulation) {
|
||||
nvgpu_warn(g, "not in sim_mode");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user