aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2008-11-10 16:51:50 -0500
committerJiri Kosina <jkosina@suse.cz>2008-11-13 04:31:36 -0500
commit43ff3a48c13f3ddc085271c2eea2985d28c8aa08 (patch)
tree3b671b4208b427c5a0e841cbfd7e23ec282cf148
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>
-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 4f0b92edb4df..e158aa83b92f 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1736,7 +1736,7 @@ static int __init hid_init(void)
1736 goto err_bus; 1736 goto err_bus;
1737 1737
1738#ifdef CONFIG_HID_COMPAT 1738#ifdef CONFIG_HID_COMPAT
1739 hid_compat_wq = create_workqueue("hid_compat"); 1739 hid_compat_wq = create_singlethread_workqueue("hid_compat");
1740 if (!hid_compat_wq) { 1740 if (!hid_compat_wq) {
1741 hidraw_exit(); 1741 hidraw_exit();
1742 goto err; 1742 goto err;