mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-21 21:02:24 +00:00
sysfs: file.c: use create_singlethread_workqueue()
We don't need a kernel thread per CPU for this application. Acked-by: Alex Chiang <achiang@hp.com> Cc: Lai Jiangshan <laijs@cn.fujitsu.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b5c42bc8db
commit
086a377edc
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user