aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorEmmanuel Nicolet <[email protected]>2019-09-27 13:04:46 +0200
committerAlexandre Belloni <[email protected]>2019-10-03 21:55:17 +0200
commiteaa6ef563d1a60fbfe6c128bf8fdb74405035b0c (patch)
tree85341021e9cd0a92945a1431d530e6f4558ce172 /tools/perf/scripts/python/stackcollapse.py
parent288d9cf1764a25eb6bb92e532a75ae90f9cb9616 (diff)
rtc: interface: use timeu64_t for range_max
For rtc drivers where rtc->range_max is set U64_MAX, like the PS3 rtc, rtc_valid_range() always returns -ERANGE. This is because the local variable range_max has type time64_t, so the test if (time < range_min || time > range_max) return -ERANGE; becomes (time < range_min || time > -1), which always evaluates to true. timeu64_t should be used, since it's the type of rtc->range_max. Signed-off-by: Emmanuel Nicolet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions