mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
of: platform: Batch fwnode parsing when adding all top level devices
The fw_devlink_pause() and fw_devlink_resume() APIs allow batching the parsing of the device tree nodes when a lot of devices are added. This will significantly cut down parsing time (as much a 1 second on some systems). So, use them when adding devices for all the top level device tree nodes in a system. Signed-off-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
716a7a2596
commit
93d2e4322a
1 file changed
+2
@@ -538,7 +538,9 @@ static int __init of_platform_default_populate_init(void)
|
||||
}
|
||||
|
||||
/* Populate everything else. */
|
||||
fw_devlink_pause();
|
||||
of_platform_default_populate(NULL, NULL, NULL);
|
||||
fw_devlink_resume();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user