[PATCH 1/3] arm64: topology: Add support for topology DT bindings
Lorenzo Pieralisi
lorenzo.pieralisi at arm.com
Wed Mar 19 12:50:58 EDT 2014
On Wed, Mar 19, 2014 at 04:33:39PM +0000, Mark Brown wrote:
> On Wed, Mar 19, 2014 at 04:04:14PM +0000, Lorenzo Pieralisi wrote:
> > > +void __init init_cpu_topology(void)
> > > +{
> > > + int ret;
> > > +
> > > + reset_cpu_topology();
> > > +
> > > + ret = parse_dt_topology();
> > > + if (ret != 0)
> > > + reset_cpu_topology();
>
> > ret is unused so should be removed. You could remove the first reset call and
>
> I'm sorry, I don't follow? The use is quoted above...
if (parse_dt_topology())
reset_cpu_topology();
If you want to leave ret there I do not care, I flag what I notice.
> > use static initialization for that, it is a matter of taste though.
>
> Static initialisation can't cover the calls to set_power_scale() and
> having a different thing for default and unwinding cases seems likely to
> be error prone.
>
> > A comment is in order, whatever approach you go for.
>
> I'm not sure what the confusion is here so I don't know what a comment
> would clarify. Could you say what it is you find confusing please?
It is worth explaining why you want to reset the topology for the sake
of completeness, I do not think I am asking too much.
parse_cluster() return value issue I flagged up must be fixed though.
Thanks,
Lorenzo
More information about the linux-arm-kernel
mailing list