Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
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
Signed-off-by: John Stultz <firstname.lastname@example.org>
CC: Jason Wessel <email@example.com>
CC: Larry Finger <Larry.Finger@lwfinger.net>
CC: Ingo Molnar <firstname.lastname@example.org>
CC: Linus Torvalds <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>