diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-10-27 13:28:37 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-12-15 13:14:59 -0500 |
commit | 0250221955bca63ad1ff7e3474e4886132cf8445 (patch) | |
tree | 3a7d223327fdf279737af5a4c35591631af970bc /include/uapi/linux/nvgpu.h | |
parent | 02b8cda953f7ff0cc9750b79b62712609da9d6ad (diff) |
gpu: nvgpu: support negative temperatures
Jira DNVGPU-166
Change-Id: Id0561d49c64096ad5cbcd23bd371b49b2e0db57c
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1245557
(cherry picked from commit 2e0269c76fdda5c8e1a30ca7ef73a08ebe644f88)
Reviewed-on: http://git-master/r/1267156
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/uapi/linux/nvgpu.h')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 16aa51b2..0aeea4f0 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -743,7 +743,10 @@ struct nvgpu_gpu_get_power_args { | |||
743 | 743 | ||
744 | struct nvgpu_gpu_get_temperature_args { | 744 | struct nvgpu_gpu_get_temperature_args { |
745 | __u32 reserved[3]; | 745 | __u32 reserved[3]; |
746 | __u32 temperature; /* mC */ | 746 | /* Temperature in signed fixed point format SFXP24.8 |
747 | * Celsius = temp_f24_8 / 256. | ||
748 | */ | ||
749 | __s32 temp_f24_8; | ||
747 | }; | 750 | }; |
748 | 751 | ||
749 | #define NVGPU_GPU_IOCTL_ZCULL_GET_CTX_SIZE \ | 752 | #define NVGPU_GPU_IOCTL_ZCULL_GET_CTX_SIZE \ |