HID: use single threaded work queue for hid_compat

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>

authored by Andi Kleen and committed by Jiri Kosina 43ff3a48 437184ae

+1 -1
+1 -1
drivers/hid/hid-core.c
··· 1736 goto err_bus; 1737 1738 #ifdef CONFIG_HID_COMPAT 1739 - hid_compat_wq = create_workqueue("hid_compat"); 1740 if (!hid_compat_wq) { 1741 hidraw_exit(); 1742 goto err;
··· 1736 goto err_bus; 1737 1738 #ifdef CONFIG_HID_COMPAT 1739 + hid_compat_wq = create_singlethread_workqueue("hid_compat"); 1740 if (!hid_compat_wq) { 1741 hidraw_exit(); 1742 goto err;