summaryrefslogtreecommitdiffstats
path: root/fs/ntfs/sysctl.h
diff options
context:
space:
mode:
authorMaxime COQUELIN <maxime.coquelin@st.com>2014-01-29 17:24:08 +0100
committerMike Turquette <mturquette@linaro.org>2014-04-30 11:51:27 -0700
commit0e2de78ecdc842218a2b6c422bb4a8ff4d85d11f (patch)
treef73422d0e0433a890fe060b400fc528a2784d64b /fs/ntfs/sysctl.h
parent774b514390b1eb8476bc759262790762bd1ef45a (diff)
downloadop-kernel-dev-0e2de78ecdc842218a2b6c422bb4a8ff4d85d11f.zip
op-kernel-dev-0e2de78ecdc842218a2b6c422bb4a8ff4d85d11f.tar.gz
clk: divider: Optimize clk_divider_bestdiv loop
Currently, the for-loop used to try all the different dividers to find the one that best fit tries all the values from 1 to max_div, incrementing by one. In case of power-of-two, or table based divider, the loop isn't optimal. Instead of incrementing by one, this patch provides directly the next divider. Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'fs/ntfs/sysctl.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud