OSDN Git Service

[media] cx88: don't use atomic_t for core->mpeg_users
authorJonathan Nieder <jrnieder@gmail.com>
Sun, 1 May 2011 09:31:04 +0000 (06:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:29:42 +0000 (09:29 -0300)
commitf4bd4be8d113534a28e0c9a86cddbabd47b06159
tree2c059112f19c98071dd25039a88ddffd1ca53d39
parent579b2b45120fa33f750cd65150d6d8995938750b
[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>
drivers/media/video/cx88/cx88-blackbird.c
drivers/media/video/cx88/cx88.h