aboutsummaryrefslogtreecommitdiff
path: root/kernel/stop_machine.c
diff options
context:
space:
mode:
authorJohn Stultz <johnstul@us.ibm.com>2010-08-13 11:30:58 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-26 16:46:18 -0700
commit59ea469c637e35604a6989a933b33883b1fcb0ab (patch)
treede465f60456e9e7bff8900e54d4eaa82a816627a /kernel/stop_machine.c
parent0d3a7582aa527a5d0107039d24571faa57114bff (diff)
time: Workaround gcc loop optimization that causes 64bit div errors
commit c7dcf87a6881bf796faee83003163eb3de41a309 upstream. 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 <johnstul@us.ibm.com> CC: Jason Wessel <jason.wessel@windriver.com> CC: Larry Finger <Larry.Finger@lwfinger.net> CC: Ingo Molnar <mingo@elte.hu> CC: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/stop_machine.c')
0 files changed, 0 insertions, 0 deletions