aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorRand Deeb <[email protected]>2023-09-05 02:23:46 +0300
committerKalle Valo <[email protected]>2023-09-07 09:00:05 +0300
commite0b5127fa134fe0284d58877b6b3133939c8b3ce (patch)
tree55520375307a99c0a821b7bee159f3bbe131b71d /tools/perf/scripts/python/flamegraph.py
parentb227c990de9a3af37d1c9e6fd9b193145b4ca779 (diff)
ssb: Fix division by zero issue in ssb_calc_clock_rate
In ssb_calc_clock_rate(), there is a potential issue where the value of m1 could be zero due to initialization using clkfactor_f6_resolv(). This situation raised concerns about the possibility of a division by zero error. We fixed it by following the suggestions provided by Larry Finger <[email protected]> and Michael Büsch <[email protected]>. The fix involves returning a value of 1 instead of 0 in clkfactor_f6_resolv(). This modification ensures the proper functioning of the code and eliminates the risk of division by zero errors. Signed-off-by: Rand Deeb <[email protected]> Acked-by: Larry Finger <[email protected]> Acked-by: Michael Büsch <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions