aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorArseny Solokha <asolokha@kb.kras.ru>2017-12-07 17:20:00 +0700
committerWolfram Sang <wsa@the-dreams.de>2018-01-15 19:13:06 +0100
commit6d106139191e58b9f4ef126cfc1e3c26c0d6702e (patch)
treee72c8ea76087ae8cb8ed739865d07e167ab05b5d /tools/perf/scripts/python/export-to-postgresql.py
parentaad550f93fbc28d562a624700f9c12c9b9055a5e (diff)
i2c: mpc: get MPC8xxx I2C clock prescaler before using it in calculations
Obtaining the actual I2C clock prescaler value in mpc_i2c_setup_8xxx() only happens when the clock parameter is set to something other than MPC_I2C_CLOCK_LEGACY. When the clock parameter is exactly MPC_I2C_CLOCK_LEGACY, the prescaler parameter is used in arithmetic division as provided by the caller, resulting in a division by zero for the majority of processors supported by the module. Avoid division by zero by obtaining the actual I2C clock prescaler in mpc_i2c_setup_8xxx() unconditionally regardless of the passed clock value. Signed-off-by: Arseny Solokha <asolokha@kb.kras.ru> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions