• Alexandre Courbot's avatar
    drm/nouveau/clk/gk20a: improve MNP programming · 6ed7e742
    Alexandre Courbot authored
    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: default avatarAlexandre Courbot <acourbot@nvidia.com>
    Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
    6ed7e742
gk20a.c 17.7 KB