summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/subdev/clock/nva3.c
diff options
context:
space:
mode:
authorAlexandre Courbot2014-07-26 11:41:40 +0200
committerBen Skeggs2014-08-09 21:12:47 +0200
commitbb4d29df5e929a356e2cff2a6d7f38442d322d5b (patch)
tree439b721a4b2c7b7e0457f68799214ec5a7f18e05 /drivers/gpu/drm/nouveau/core/subdev/clock/nva3.c
parentdrm/nouveau/clk: make therm and volt devices optional (diff)
downloadkernel-qcow2-linux-bb4d29df5e929a356e2cff2a6d7f38442d322d5b.tar.gz
kernel-qcow2-linux-bb4d29df5e929a356e2cff2a6d7f38442d322d5b.tar.xz
kernel-qcow2-linux-bb4d29df5e929a356e2cff2a6d7f38442d322d5b.zip
drm/nouveau/clk: support for non-BIOS pstates
Make nouveau_clock_create() take new two optional arguments: an array of pstates and its size. When these are specified, nouveau_clock_create() will use the provided pstates instead of probing them using the BIOS. This is useful for platforms which do not provide a BIOS, like Tegra. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev/clock/nva3.c')
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/clock/nva3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/clock/nva3.c b/drivers/gpu/drm/nouveau/core/subdev/clock/nva3.c
index 9fb58354a80b..087012b18956 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/clock/nva3.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/clock/nva3.c
@@ -302,8 +302,8 @@ nva3_clock_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
struct nva3_clock_priv *priv;
int ret;
- ret = nouveau_clock_create(parent, engine, oclass, nva3_domain, false,
- &priv);
+ ret = nouveau_clock_create(parent, engine, oclass, nva3_domain, NULL, 0,
+ false, &priv);
*pobject = nv_object(priv);
if (ret)
return ret;