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/gp10b/therm_gp10b.h | |
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/gp10b/therm_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/therm_gp10b.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/therm_gp10b.h b/drivers/gpu/nvgpu/gp10b/therm_gp10b.h index 18c102fe..c9ed01e6 100644 --- a/drivers/gpu/nvgpu/gp10b/therm_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/therm_gp10b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -13,7 +13,8 @@ | |||
13 | #ifndef THERM_GP10B_H | 13 | #ifndef THERM_GP10B_H |
14 | #define THERM_GP10B_H | 14 | #define THERM_GP10B_H |
15 | 15 | ||
16 | struct gpu_ops; | 16 | struct gk20a; |
17 | void gp10b_init_therm_ops(struct gpu_ops *gops); | 17 | int gp10b_init_therm_setup_hw(struct gk20a *g); |
18 | int gp10b_elcg_init_idle_filters(struct gk20a *g); | ||
18 | 19 | ||
19 | #endif /* THERM_GP10B_H */ | 20 | #endif /* THERM_GP10B_H */ |