mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
drm/nouveau/clk: allow users to enable auto mode when loading driver
This patch adds one option for the boot config strings "NvClkMode*", so that we can enable the "auto" mode when loading module. Signed-off-by: Vince Hsu <vinceh@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
9f7fd620af
commit
9f79b5ce12
1 changed files with 3 additions and 0 deletions
|
|
@ -401,6 +401,9 @@ nouveau_clock_nstate(struct nouveau_clock *clk, const char *mode, int arglen)
|
|||
{
|
||||
int ret = 1;
|
||||
|
||||
if (clk->allow_reclock && !strncasecmpz(mode, "auto", arglen))
|
||||
return -2;
|
||||
|
||||
if (strncasecmpz(mode, "disabled", arglen)) {
|
||||
char save = mode[arglen];
|
||||
long v;
|
||||
|
|
|
|||
Loading…
Reference in a new issue