Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1414600
| From | Viresh Kumar <viresh.kumar@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V3 6/9] cpufreq: imx: Use 'index' only to index into policy->freq_table |
| Date | 2016-06-06 06:00 +0200 |
| Message-ID | <rGTRM-7TG-7@gated-at.bofh.it> (permalink) |
| References | <rFXup-3Iu-3@gated-at.bofh.it> <rFXuq-3Iu-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 <shawn.guo@freescale.com> > 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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V3 6/9] cpufreq: imx: Use 'index' only to index into policy->freq_table Viresh Kumar <viresh.kumar@linaro.org> - 2016-06-03 15:40 +0200 Re: [PATCH V3 6/9] cpufreq: imx: Use 'index' only to index into policy->freq_table Viresh Kumar <viresh.kumar@linaro.org> - 2016-06-06 06:00 +0200
csiph-web