]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commite999df9dd4356fd03b1fe1038ce2db2c066766d3
tree2c059112f19c98071dd25039a88ddffd1ca53d39
parentc24b172d51dc5c41072e969ea73867ebc574bcbd
[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