diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2014-07-26 18:41:40 +0900 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-08-10 05:12:47 +1000 |
commit | bb4d29df5e929a356e2cff2a6d7f38442d322d5b (patch) | |
tree | 439b721a4b2c7b7e0457f68799214ec5a7f18e05 /drivers/gpu/drm/nouveau/core/subdev/clock/nve0.c | |
parent | drm/nouveau/clk: make therm and volt devices optional (diff) | |
download | linux-dev-bb4d29df5e929a356e2cff2a6d7f38442d322d5b.tar.xz linux-dev-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 '')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/clock/nve0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/clock/nve0.c b/drivers/gpu/drm/nouveau/core/subdev/clock/nve0.c index 0e62a3240144..7eccad57512e 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/clock/nve0.c +++ b/drivers/gpu/drm/nouveau/core/subdev/clock/nve0.c @@ -475,8 +475,8 @@ nve0_clock_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nve0_clock_priv *priv; int ret; - ret = nouveau_clock_create(parent, engine, oclass, nve0_domain, true, - &priv); + ret = nouveau_clock_create(parent, engine, oclass, nve0_domain, NULL, 0, + true, &priv); *pobject = nv_object(priv); if (ret) return ret; |