Skip to content

Commit

Permalink
HID: use single threaded work queue for hid_compat
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Jiri Kosina committed Nov 13, 2008
1 parent 437184a commit 43ff3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 43ff3a4

Please sign in to comment.