diff options
author | Andi Kleen <andi@firstfloor.org> | 2008-11-10 22:51:50 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-11-13 10:31:36 +0100 |
commit | 43ff3a48c13f3ddc085271c2eea2985d28c8aa08 (patch) | |
tree | 3b671b4208b427c5a0e841cbfd7e23ec282cf148 /drivers | |
parent | 437184ae8bd1ef923a40b009e37801deae66ad55 (diff) | |
download | op-kernel-dev-43ff3a48c13f3ddc085271c2eea2985d28c8aa08.zip op-kernel-dev-43ff3a48c13f3ddc085271c2eea2985d28c8aa08.tar.gz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hid/hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 4f0b92e..e158aa8 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -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; |