Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] cx231xx: Use wake_up_interruptible() instead of wake_up_interruptible_nr()

While looking at use cases of the wake queues in order to add support
for simple wait queues, I noticed that there was only a single user of
wake_up_interruptible_nr(), and that use was doing a single task wake
up. Have that user use the proper wake_up_interruptible() instead, and
perhaps we can even remove the function wake_up_interruptible_nr().

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Steven Rostedt and committed by
Mauro Carvalho Chehab
543409a2 abeaca0f

+2 -2
+2 -2
drivers/media/usb/cx231xx/cx231xx-video.c
··· 1875 1875 v4l2_fh_exit(&fh->fh); 1876 1876 kfree(fh); 1877 1877 dev->users--; 1878 - wake_up_interruptible_nr(&dev->open, 1); 1878 + wake_up_interruptible(&dev->open); 1879 1879 return 0; 1880 1880 } 1881 1881 ··· 1908 1908 } 1909 1909 v4l2_fh_exit(&fh->fh); 1910 1910 kfree(fh); 1911 - wake_up_interruptible_nr(&dev->open, 1); 1911 + wake_up_interruptible(&dev->open); 1912 1912 return 0; 1913 1913 } 1914 1914