drm/nouveau/clk/gk20a: only compute n_lo if needed
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 12 Feb 2016 05:15:57 +0000 (14:15 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 14 Mar 2016 00:13:53 +0000 (10:13 +1000)
commita08c8bae66eb42a901410e43fd48bac8948bd2da
tree02ce8627f3db1428576cb5d9b10577fb34e3b24e
parent3a91b9c5efd27729767edfde9df069aa61c4816f
drm/nouveau/clk/gk20a: only compute n_lo if needed

n_lo is used if we are going to slide. Compute it only if that condition
succeeds to avoid confusion about future usage of this computation.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c