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

connector: convert to single-threaded workqueue

From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>

We don't need one cqueue thread for each CPU. cqueue is used for
receiving userspace datagrams, which are very rare and thus will
happily live with a single queue.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Evgeniy Polyakov and committed by
David S. Miller
4b1b3667 dbee0d3f

+1 -1
+1 -1
drivers/connector/cn_queue.c
··· 146 146 147 147 dev->nls = nls; 148 148 149 - dev->cn_queue = create_workqueue(dev->name); 149 + dev->cn_queue = create_singlethread_workqueue(dev->name); 150 150 if (!dev->cn_queue) { 151 151 kfree(dev); 152 152 return NULL;