Thread (25 messages) 25 messages, 5 authors, 2016-06-08

Re: [PATCH V3 6/9] cpufreq: imx: Use 'index' only to index into policy->freq_table

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2016-06-06 03:58:22
Also in: lkml

On 03-06-16, 19:05, Viresh Kumar wrote:
Later patches would make changes in cpufreq core, after which
policy->freq_table may be reordered by cpufreq core and it wouldn't be
safe anymore to use 'index' for any other local arrays.

To prepare for that, use policy->freq_table[index].driver_data for other
driver specific usage of 'index'. The 'driver_data' fields are already
set properly by the driver.

Cc: Shawn Guo <redacted>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 drivers/cpufreq/imx6q-cpufreq.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
Fixing Shawn's id.

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help