]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/clk/gk20a: improve MNP programming
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 1 Jun 2016 08:39:27 +0000 (17:39 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Jul 2016 01:53:25 +0000 (11:53 +1000)
commit361d9495237e2fcfce263f99177a8f94b843c16a
treeae245b981ba198e884ad6915ae6e79a95611c082
parenta57c778e93a2e0a15a109bc00b0ed48e9e6386c7
drm/nouveau/clk/gk20a: improve MNP programming

Split the MNP programming function into two functions for the cases
where we allow sliding or not, instead of making it take a parameter for
this. This results in less conditionals in the code and makes it easier
to read.

Also make the MNP programming functions take the PLL parameters as
arguments, and move bits of code to more relevant places (previous
programming tended to be just-in-time, which added more conditionnals in
the code).

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