aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorWolfram Sang <[email protected]>2017-07-19 10:27:54 +0200
committerWim Van Sebroeck <[email protected]>2017-09-09 20:23:19 +0200
commit82f64cd20848511f516bd28147a6432497dfb080 (patch)
treea0abd69e25cd929b51310197b16c7db552cc7d5e /tools/perf/scripts/python/call-graph-from-sql.py
parent1c1b2434017206b612764fad1820b6dd48cb9e92 (diff)
watchdog: renesas_wdt: apply better precision
The error margin of the clks_per_second variable was too large and caused offsets when used with clock frequencies which left a remainder after applying the dividers. Now we always calculate directly using the clock rate and the divider using some helper macros. That also means that DIV_ROUND_UP moves from probe to the multiplication macro. In probe, we don't need to ensure anymore that 'clks_per_sec' would go too fast but rather ensure that the lower limit is really at least 1 to certainly get a full cycle. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions