Skip to content

Commit 93d2e43

Browse files
Saravana Kannangregkh
authored andcommitted
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]>
1 parent 716a7a2 commit 93d2e43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/of/platform.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,9 @@ static int __init of_platform_default_populate_init(void)
538538
}
539539

540540
/* Populate everything else. */
541+
fw_devlink_pause();
541542
of_platform_default_populate(NULL, NULL, NULL);
543+
fw_devlink_resume();
542544

543545
return 0;
544546
}

0 commit comments

Comments
 (0)