diff options
author | Sunny He <suhe@nvidia.com> | 2017-07-26 21:09:07 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-27 19:34:46 -0400 |
commit | f457e808f0d1097cec02a022eb42c77a075ef881 (patch) | |
tree | fa8b1f3b67cf5e6c102cb1cf30f3a738ed9d7e68 /drivers/gpu/nvgpu/gv11b/therm_gv11b.c | |
parent | 8aa0370005a81a7e26ae7c86585626d3261aa4d3 (diff) |
gpu: nvgpu: gv11b: Reorg therm HAL initialization
Reorganize HAL initialization to remove inheritance and construct
the gpu_ops struct at compile time. This patch only covers the
therm sub-module of the gpu_ops struct.
Perform HAL function assignments in hal_gxxxx.c through the
population of a chip-specific copy of gpu_ops.
Jira NVGPU-74
Change-Id: Ic297792c4d47ffbe64cc0bd95a659a6b7f383743
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1527423
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/therm_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/therm_gv11b.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/therm_gv11b.c b/drivers/gpu/nvgpu/gv11b/therm_gv11b.c deleted file mode 100644 index 89520ead..00000000 --- a/drivers/gpu/nvgpu/gv11b/therm_gv11b.c +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | /* | ||
2 | * GV11B Therm | ||
3 | * | ||
4 | * Copyright (c) 2016-2017, 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 | |||
16 | #include "gk20a/gk20a.h" | ||
17 | |||
18 | #include "gp10b/therm_gp10b.h" | ||
19 | |||
20 | #include "therm_gv11b.h" | ||
21 | |||
22 | void gv11b_init_therm_ops(struct gpu_ops *gops) | ||
23 | { | ||
24 | gp10b_init_therm_ops(gops); | ||
25 | } | ||