Commit 93d2e432 authored by Saravana Kannan's avatar Saravana Kannan Committed by Greg Kroah-Hartman

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: default avatarSaravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200515053500.215929-5-saravanak@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 716a7a25
...@@ -538,7 +538,9 @@ static int __init of_platform_default_populate_init(void) ...@@ -538,7 +538,9 @@ static int __init of_platform_default_populate_init(void)
} }
/* Populate everything else. */ /* Populate everything else. */
fw_devlink_pause();
of_platform_default_populate(NULL, NULL, NULL); of_platform_default_populate(NULL, NULL, NULL);
fw_devlink_resume();
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment