]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
HID: use single threaded work queue for hid_compat
authorAndi Kleen <andi@firstfloor.org>
Mon, 10 Nov 2008 21:51:50 +0000 (22:51 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 13 Nov 2008 09:31:36 +0000 (10:31 +0100)
Use single threaded work queue for hid_compat

I doubt HID really needs to scale over multiple CPUs. So only use a
single threaded workqueue for HID_COMPAT. This avoids some excessive
thread use on systems with a larger number of CPUs.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c

index 4f0b92edb4df6d4eb2a00e17dedc5750823815c2..e158aa83b92f35cc8ba898743f1887ae041b7239 100644 (file)
@@ -1736,7 +1736,7 @@ static int __init hid_init(void)
                goto err_bus;
 
 #ifdef CONFIG_HID_COMPAT
-       hid_compat_wq = create_workqueue("hid_compat");
+       hid_compat_wq = create_singlethread_workqueue("hid_compat");
        if (!hid_compat_wq) {
                hidraw_exit();
                goto err;