summaryrefslogtreecommitdiff
path: root/kernel/module
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2022-10-26 00:13:56 +0200
committerLuis Chamberlain <mcgrof@kernel.org>2022-11-11 10:19:52 -0800
commit96a1a2412acba8c057c041833641d9b7dbf52170 (patch)
tree13dc35e8462f2f60cbe91e2991097898d1f7be12 /kernel/module
parent89a6b5917650edd1542194fd5b5ada64fb94a790 (diff)
downloadlwn-96a1a2412acba8c057c041833641d9b7dbf52170.tar.gz
lwn-96a1a2412acba8c057c041833641d9b7dbf52170.zip
kernel/params.c: defer most of param_sysfs_init() to late_initcall time
param_sysfs_init(), and in particular param_sysfs_builtin() is rather time-consuming; for my board, it currently takes about 30ms. That amounts to about 3% of the time budget I have from U-Boot hands over control to linux and linux must assume responsibility for keeping the external watchdog happy. We must still continue to initialize module_kset at subsys_initcall time, since otherwise any request_module() would fail in mod_sysfs_init(). However, the bulk of the work in param_sysfs_builtin(), namely populating /sys/module/*/version and/or /sys/module/*/parameters/ for builtin modules, can be deferred to late_initcall time - there's no userspace yet anyway to observe contents of /sys or the lack thereof. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module')
0 files changed, 0 insertions, 0 deletions