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

Commit 086a377e authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman
Browse files

sysfs: file.c: use create_singlethread_workqueue()



We don't need a kernel thread per CPU for this application.

Acked-by: default avatarAlex Chiang <achiang@hp.com>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b5c42bc8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -723,7 +723,7 @@ int sysfs_schedule_callback(struct kobject *kobj, void (*func)(void *),
	mutex_unlock(&sysfs_workq_mutex);
	mutex_unlock(&sysfs_workq_mutex);


	if (sysfs_workqueue == NULL) {
	if (sysfs_workqueue == NULL) {
		sysfs_workqueue = create_workqueue("sysfsd");
		sysfs_workqueue = create_singlethread_workqueue("sysfsd");
		if (sysfs_workqueue == NULL) {
		if (sysfs_workqueue == NULL) {
			module_put(owner);
			module_put(owner);
			return -ENOMEM;
			return -ENOMEM;