drm/nouveau/clk/gk20a: factorize n_lo computation code
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 1 Jun 2016 08:39:26 +0000 (17:39 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Jul 2016 01:53:25 +0000 (11:53 +1000)
commitafea21c9174e555defd55f488df2a99117457b4e
tree3302c8961fd2a74dc19f2dd6175ff47c7faf088c
parent89d3a912fc00cd6fccdafb14a63395b049aa2aa1
drm/nouveau/clk/gk20a: factorize n_lo computation code

Use a dedicated function instead of always calculating n_lo on the fly.

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