diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2011-05-01 11:31:04 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 14:29:42 +0200 |
commit | f4bd4be8d113534a28e0c9a86cddbabd47b06159 (patch) | |
tree | 2c059112f19c98071dd25039a88ddffd1ca53d39 /drivers/media/video/cx88/cx88.h | |
parent | [media] cx88: gracefully reject attempts to use unregistered cx88-blackbird d... (diff) | |
download | linux-f4bd4be8d113534a28e0c9a86cddbabd47b06159.tar.xz linux-f4bd4be8d113534a28e0c9a86cddbabd47b06159.zip |
[media] cx88: don't use atomic_t for core->mpeg_users
mpeg_users is always read or written with core->lock held except
in mpeg_release (where it looks like a bug). A plain int is simpler
and faster.
Tested-by: Andi Huber <hobrom@gmx.at>
Tested-by: Marlon de Boer <marlon@hyves.nl>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx88/cx88.h')
-rw-r--r-- | drivers/media/video/cx88/cx88.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h index 3d32f4afac9d..9e8176ecf648 100644 --- a/drivers/media/video/cx88/cx88.h +++ b/drivers/media/video/cx88/cx88.h @@ -390,7 +390,7 @@ struct cx88_core { /* various v4l controls */ u32 freq; atomic_t users; - atomic_t mpeg_users; + int mpeg_users; /* cx88-video needs to access cx8802 for hybrid tuner pll access. */ struct cx8802_dev *dvbdev; |