diff options
author | Guy Shapiro <guy.shapiro@mobi-wize.com> | 2016-11-30 10:25:11 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-11-30 17:44:36 -0800 |
commit | accbcea3465b2038fa8aa66cfa8f40db7ab1c83c (patch) | |
tree | 2f97f94d26e2db4532917fddfd0e033d40a495b8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 70f5a294ad2eec3f896dafb83075cb8f04d65e92 (diff) |
Input: imx6ul_tsc - convert int to u32
The code uses of_property_read_u32 and expects positive values. However,
the values are stored in signed int variables. Additionally, the registers
values are also stored in signed variables without a good reason
(readl/writel expect u32).
The only time this caused a real bug was in the new average-samples
property, in which the property is numerically compared and implicitly
expected to be positive.
I believe it's better to change all the properties and registers to u32,
for consistency and warnings reduction.
Signed-off-by: Guy Shapiro <guy.shapiro@mobi-wize.com>
Reported-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions