aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJohn Stultz <[email protected]>2010-08-13 11:30:58 -0700
committerLinus Torvalds <[email protected]>2010-08-13 12:03:24 -0700
commitc7dcf87a6881bf796faee83003163eb3de41a309 (patch)
tree1e4333e588ad6e8e69e310d8ae71798af1c0bdb5 /tools/perf/scripts/python
parent2be1f3a73dd02e38e181cf5abacb3d45a6a2d6b8 (diff)
time: Workaround gcc loop optimization that causes 64bit div errors
Early 4.3 versions of gcc apparently aggressively optimize the raw time accumulation loop, replacing it with a divide. On 32bit systems, this causes the following link errors: undefined reference to `__umoddi3' undefined reference to `__udivdi3' The gcc issue has been fixed in 4.4 and greater. This patch replaces the accumulation loop with a do_div, as suggested by Linus. Signed-off-by: John Stultz <[email protected]> CC: Jason Wessel <[email protected]> CC: Larry Finger <[email protected]> CC: Ingo Molnar <[email protected]> CC: Linus Torvalds <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions