diff options
author | Sunny He <suhe@nvidia.com> | 2017-07-26 21:08:00 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-27 19:34:45 -0400 |
commit | f391f53c089ec12fcc501c491430380b668e3cbf (patch) | |
tree | cc7dde1ab600dedb48c1b712094c16ceafaf5cdc /drivers/gpu/nvgpu/gm20b/therm_gm20b.c | |
parent | f0593bb43f3379baffd7bb77b89c9af18842ceef (diff) |
gpu: nvgpu: 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: Ic9d03304d3dcde0365cbf22af2dbe1e7eb0e04bb
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1527422
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/therm_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/therm_gm20b.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/therm_gm20b.c b/drivers/gpu/nvgpu/gm20b/therm_gm20b.c index 84c1a071..a999151f 100644 --- a/drivers/gpu/nvgpu/gm20b/therm_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/therm_gm20b.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GM20B THERMAL | 2 | * GM20B THERMAL |
3 | * | 3 | * |
4 | * Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 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, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | #include <nvgpu/hw/gm20b/hw_therm_gm20b.h> | 20 | #include <nvgpu/hw/gm20b/hw_therm_gm20b.h> |
21 | 21 | ||
22 | static int gm20b_init_therm_setup_hw(struct gk20a *g) | 22 | int gm20b_init_therm_setup_hw(struct gk20a *g) |
23 | { | 23 | { |
24 | u32 v; | 24 | u32 v; |
25 | 25 | ||
@@ -67,9 +67,3 @@ static int gm20b_init_therm_setup_hw(struct gk20a *g) | |||
67 | 67 | ||
68 | return 0; | 68 | return 0; |
69 | } | 69 | } |
70 | |||
71 | void gm20b_init_therm_ops(struct gpu_ops *gops) | ||
72 | { | ||
73 | gops->therm.init_therm_setup_hw = gm20b_init_therm_setup_hw; | ||
74 | gops->therm.elcg_init_idle_filters = gk20a_elcg_init_idle_filters; | ||
75 | } | ||