[PATCH v2 1/4] clk: scmi: Bulk allocate all sub-driver instance data

Peng Fan (OSS) peng.fan at oss.nxp.com
Fri Nov 7 08:15:36 CET 2025


From: Peng Fan <peng.fan at nxp.com>


On Fri, 07 Nov 2025 04:01:23 +0100, Marek Vasut wrote:
> Allocate all sub-driver instance data at once. The amount of data that
> have to be allocated is known up front, so is the size of the data, so
> there is no need to call malloc() in a loop, mallocate all data at once.
> 
> The upside is, less heap fragmentation and fewer malloc() calls overall,
> and a faster boot time.
> 
> [...]

Applied to fsl-qoriq
ext, thanks!

[1/4] clk: scmi: Bulk allocate all sub-driver instance data
      commit: e8c2051fdc8bc3f59d36b614c3d6a1da04520d9d
[2/4] clk: scmi: Factor out clock control flags resolution
      commit: 624de0d04ae479d59b3061cf93ab77cc06cb2c86
[3/4] clk: scmi: Postpone clock name resolution
      commit: 88b89eaed86d9ba23b440b8a91b69925d74fa6fc
[4/4] clk: scmi: Defer issue of SCMI_CLOCK_ATTRIBUTES
      commit: 3ea7acae0d9cf73729cb0fad0056e519d3a2267c

Best regards,
-- 
Peng Fan <peng.fan at nxp.com>


More information about the U-Boot mailing list