summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/atom.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2009-12-17 02:00:46 +0300
committerDave Airlie <airlied@redhat.com>2009-12-23 04:14:03 +0300
commitc31ad97f1886a2ff0f3356dc31d50c57944365da (patch)
tree4e6de647819a7acdcd7651efeb7c1db14a6179c7 /drivers/gpu/drm/radeon/atom.h
parentd79766fab9975c6414ebab7d2abf017834a48c35 (diff)
downloadlinux-c31ad97f1886a2ff0f3356dc31d50c57944365da.tar.xz
drm/radeon/kms: prevent parallel AtomBIOS calls
This just adds a mutex around the atombios table execution so we don't call it from two contexts at once. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/atom.h')
-rw-r--r--drivers/gpu/drm/radeon/atom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/atom.h b/drivers/gpu/drm/radeon/atom.h
index 6671848e5ea1..47fd943f6d14 100644
--- a/drivers/gpu/drm/radeon/atom.h
+++ b/drivers/gpu/drm/radeon/atom.h
@@ -120,6 +120,7 @@ struct card_info {
struct atom_context {
struct card_info *card;
+ struct mutex mutex;
void *bios;
uint32_t cmd_table, data_table;
uint16_t *iio;