Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43ff3a48 authored by Andi Kleen's avatar Andi Kleen Committed by Jiri Kosina
Browse files

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: default avatarAndi Kleen <ak@linux.intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 437184ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;