|
|
Re: [PATCH 09/10] clk: dynamically allocate parent_names basic clk registration |
On Tue, Mar 27, 2012 at 10:55:14AM +0200, Sascha Hauer wrote: > On Tue, Mar 27, 2012 at 03:23:28PM +0800, Shawn Guo wrote: > > It's not necessary to have "char *parent[1]" carried in struct clk_gate > > and clk_divider. Instead, it can be dynamically allocated in > > registration function, just like what clk_register_fixed_rate does. > > I patched it the way it is to get rid of the additional malloc which > seemed unnecessary. Maybe the real question is whether the core should > duplicate the parent strings instead of the basic clock types. > If we can ensure the parent strings will only be used during clk_register call, we do not need to duplicate the parent strings. But right now the parent strings is used not only in clk_register call but also __clk_set_parent for finding parent index in case the search on cached parent points fails. I guess Mike has a good reason for that. -- Regards, Shawn _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
[Linux ARM (vger)] [Linux ARM MSM] [Linux Omap] [Linux Arm] [Linux Tegra] [Fedora ARM] [eCos] [Linux Fastboot] [Gcc Help] [Git] [DCCP] [IETF Announce] [Security] [PDAs] [Linux] [Linux MIPS] [Yosemite Campsites] [Photos]
![]() |
![]() |