diff options
author | Thomas Steinle <tsteinle@nvidia.com> | 2018-09-20 10:00:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-11-20 12:58:52 -0500 |
commit | 3686634b2a195b7289a249a2018762728db2361e (patch) | |
tree | fd5aed5624755728a787443f40151c9c679ed06e | |
parent | 20ac0d74cf0d1dc51fc94a830c2c5f5baadc6fd5 (diff) |
gpu: nvgpu: Add NVGPU_SUPPORT_GET_GPU_LOAD
Add a flag to show if NVGPU_GPU_IOCTL_GET_GPU_LOAD is supported
Bug 200421190
Change-Id: I59200b1a3dbbcc0d731d1e77597e163c61417a96
Signed-off-by: Thomas Steinle <tsteinle@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1919448
(cherry picked from commit 7cb9e3cc14d3cec7e4685bd56728dc0e61b1b700)
Reviewed-on: https://git-master.nvidia.com/r/1944689
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/enabled.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/enabled.h b/drivers/gpu/nvgpu/include/nvgpu/enabled.h index 12acf353..79bffcac 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/enabled.h +++ b/drivers/gpu/nvgpu/include/nvgpu/enabled.h | |||
@@ -174,10 +174,13 @@ struct gk20a; | |||
174 | /* SEC2 RTOS support*/ | 174 | /* SEC2 RTOS support*/ |
175 | #define NVGPU_SUPPORT_SEC2_RTOS 69 | 175 | #define NVGPU_SUPPORT_SEC2_RTOS 69 |
176 | 176 | ||
177 | /* NVGPU_GPU_IOCTL_GET_GPU_LOAD is available */ | ||
178 | #define NVGPU_SUPPORT_GET_GPU_LOAD 70 | ||
179 | |||
177 | /* | 180 | /* |
178 | * Must be greater than the largest bit offset in the above list. | 181 | * Must be greater than the largest bit offset in the above list. |
179 | */ | 182 | */ |
180 | #define NVGPU_MAX_ENABLED_BITS 70 | 183 | #define NVGPU_MAX_ENABLED_BITS 71 |
181 | 184 | ||
182 | /** | 185 | /** |
183 | * nvgpu_is_enabled - Check if the passed flag is enabled. | 186 | * nvgpu_is_enabled - Check if the passed flag is enabled. |