drm/nouveau: pass perflvl struct to clock_pre()

On certain boards, there's BIOS scripts and memory timings that need to
be modified with the memclk.  Just pass in the entire perflvl struct and
let the chipset-specific code decide what to do.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs
2010-09-27 09:47:56 +10:00
parent fe224bb7e1
commit 5c6dc65754
5 changed files with 17 additions and 11 deletions

View File

@@ -39,7 +39,8 @@ nv04_pm_clock_get(struct drm_device *dev, u32 id)
}
void *
nv04_pm_clock_pre(struct drm_device *dev, u32 id, int khz)
nv04_pm_clock_pre(struct drm_device *dev, struct nouveau_pm_level *perflvl,
u32 id, int khz)
{
struct nv04_pm_state *state;
int ret;