diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-05-02 20:19:19 -0400 |
---|---|---|
committer | Vijayakumar Subbu <vsubbu@nvidia.com> | 2016-06-06 23:43:27 -0400 |
commit | 697c8c1a98f09906c6513a0ed62052a375e83dc9 (patch) | |
tree | 3a0b03395b6894664994cec298573edf3fff7bae /drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |
parent | f48d28caa31877d76099311db2c6312c1cd1b97d (diff) |
gpu:nvgpu: add sysfs nodes for ptimer freq
With current ptimer_scale_factor sysfs node, some
precision is lost while converting scaling factor to
floating point and similarly more precision will be lost
while converting back to fixed point. To avoid this,
kernel will export following two sysfs nodes:
ptimer_ref_freq : ptimer reference frequency( in hz)
ptimer_src_freq : ptimer source frequency (in hz) in current
chip architecture.
Client will apply proper scaling factor by doing
ptimer_ref_freq / ptimer_src_freq.
Change-Id: I84516e235cc3fffe4cb9a73903416478f4050a9a
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1139985
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
0 files changed, 0 insertions, 0 deletions