diff options
author | Baruch Siach <[email protected]> | 2013-07-17 12:46:53 +0300 |
---|---|---|
committer | John Stultz <[email protected]> | 2013-07-22 16:24:22 -0700 |
commit | 53c035204253efe373d9ff166fae6147e8c693b6 (patch) | |
tree | 3a12ce29c5321a4b390550cbf344c46c5cee9746 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | b0ec636c93ddd77235bf0f023a8a95d78cb6cafe (diff) |
sched_clock: Fix integer overflow
The expression '(1 << 32)' happens to evaluate as 0 on ARM, but
it evaluates as 1 on xtensa and x86_64. This zeros sched_clock_mask,
and breaks sched_clock().
Set the type of 1 to 'unsigned long long' to get the value we need.
Reported-by: Max Filippov <[email protected]>
Tested-by: Max Filippov <[email protected]>
Acked-by: Russell King <[email protected]>
Signed-off-by: Baruch Siach <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions