aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorHannu Heikkinen <[email protected]>2011-02-24 21:31:33 +0200
committerGrant Likely <[email protected]>2011-02-24 12:44:37 -0700
commit57d9c10dd91f942f836592f407d6351e2969548a (patch)
tree38ffc12947c93bf96de66b88d4c719913e0477f0 /tools/perf/scripts/python/net_dropmonitor.py
parent1648237dc2053bfd6ade3ce3dca3716d53cf9dcf (diff)
spi/omap_mcspi: Off-by-one error in finding the right divisor
Off-by-one error, gave erroneous divisor value 16 if speed_hz is over zero but less than OMAP2_MCSPI_MAX_FREQ / (1 << 15), that is, [1..1463]. Also few overly complex bit shifts in divisor fixed. Also one dev_dgb line fixed, which indicated max speed exceeding transfer speed. Introducing a new function omap2_mcspi_calc_divisor() for getting the right divisor in omap2_mcspi_setup_transfer(). Signed-off-by: Phil Carmody <[email protected]> Signed-off-by: Hannu Heikkinen <[email protected]> Signed-off-by: Grant Likely <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions