Re: [PATCH] clk: Remove global clk traversal on fetch parent index

2019-01-24 Thread Stephen Boyd
Quoting Derek Basehore (2018-12-20 16:31:00) > It's not required to traverse the entire clk tree when the parents > array contains a NULL value. You already have the parent clk_core > pointer, so you can just compare the parent->name and parent_names[i] > pointers. > > In cases where clk names

Re: [PATCH] clk: Remove global clk traversal on fetch parent index

2018-12-21 Thread Stephen Boyd
Quoting Derek Basehore (2018-12-20 16:31:00) > It's not required to traverse the entire clk tree when the parents > array contains a NULL value. You already have the parent clk_core > pointer, so you can just compare the parent->name and parent_names[i] > pointers. Ok. > > In cases where clk

[PATCH] clk: Remove global clk traversal on fetch parent index

2018-12-20 Thread Derek Basehore
It's not required to traverse the entire clk tree when the parents array contains a NULL value. You already have the parent clk_core pointer, so you can just compare the parent->name and parent_names[i] pointers. In cases where clk names are never registered, this can be a substantial power