kernel/ksysfs.c: Call ksysfs_init() early when CONFIG_INITCALL_ASYNC=y

configfs_init()/debugfs_init() depends on ksysfs_init() to init kernel_kobj.
But configfs_init()/debugfs_init() and ksysfs_init() are both in the same
core_initcall level.

Fix this by move ksysfs_init() to the pure_initcall level.

Change-Id: Iaa23a25a59b3a133f3cecb396fc69dd7e65d45ad
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2020-03-17 19:46:41 +08:00
parent 688b53c7af
commit a7f5880658

View File

@@ -270,4 +270,8 @@ exit:
return error;
}
#ifdef CONFIG_INITCALL_ASYNC
pure_initcall(ksysfs_init);
#else
core_initcall(ksysfs_init);
#endif