radeon: Take drm struct_mutex over reclocking
authorMatthew Garrett <mjg@redhat.com>
Mon, 26 Apr 2010 19:57:01 +0000 (15:57 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 18 May 2010 08:21:19 +0000 (18:21 +1000)
commit8f5b5e632cd55d9acf10ba498b858fd996bd1a39
tree576ccaf0fad16bb5ff9032f17214ca60c1374a69
parent5876dd249e8e47c730cac090bf6edd88e5f04327
radeon: Take drm struct_mutex over reclocking

We need to block the drm core from doing anything that may touch our vram
during reclock, so take the drm mutex for the duration.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_pm.c