summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2008-11-10 22:51:50 +0100
committerJiri Kosina <jkosina@suse.cz>2008-11-13 10:31:36 +0100
commit43ff3a48c13f3ddc085271c2eea2985d28c8aa08 (patch)
tree3b671b4208b427c5a0e841cbfd7e23ec282cf148 /drivers/hid
parent437184ae8bd1ef923a40b009e37801deae66ad55 (diff)
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/hid')
-rw-r--r--drivers/hid/hid-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 4f0b92edb4d..e158aa83b92 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;