diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-01-30 02:24:37 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-27 17:30:52 -0500 |
commit | 6393eddfa996fba03464f897b85aa5ec79860fed (patch) | |
tree | 557ebe9be93e2b0464118e7d8ec019d9d5dbae5f /drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c | |
parent | 7932568b7fe9e16b2b83bc58b2b3686c0d5e52d4 (diff) |
gpu: nvgpu: vgpu: move common files out of linux folder
Most of files have been moved out of linux folder. More code could be
common as halifying going on.
Jira EVLR-2364
Change-Id: Ia9dbdbc82f45ceefe5c788eac7517000cd455d5e
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1649947
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c deleted file mode 100644 index 5da6f88a..00000000 --- a/drivers/gpu/nvgpu/common/linux/vgpu/ce2_vgpu.c +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | /* | ||
2 | * Virtualized GPU CE2 | ||
3 | * | ||
4 | * Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms and conditions of the GNU General Public License, | ||
8 | * version 2, as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | * more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #include "vgpu.h" | ||
20 | #include "gk20a/channel_gk20a.h" | ||
21 | |||
22 | #include <nvgpu/bug.h> | ||
23 | |||
24 | int vgpu_ce2_nonstall_isr(struct gk20a *g, | ||
25 | struct tegra_vgpu_ce2_nonstall_intr_info *info) | ||
26 | { | ||
27 | gk20a_dbg_fn(""); | ||
28 | |||
29 | switch (info->type) { | ||
30 | case TEGRA_VGPU_CE2_NONSTALL_INTR_NONBLOCKPIPE: | ||
31 | gk20a_channel_semaphore_wakeup(g, true); | ||
32 | break; | ||
33 | default: | ||
34 | WARN_ON(1); | ||
35 | break; | ||
36 | } | ||
37 | |||
38 | return 0; | ||
39 | } | ||
40 | |||
41 | u32 vgpu_ce_get_num_pce(struct gk20a *g) | ||
42 | { | ||
43 | struct vgpu_priv_data *priv = vgpu_get_priv_data(g); | ||
44 | |||
45 | return priv->constants.num_pce; | ||
46 | } | ||