Skip to content

Commit

Permalink
Last change caused infinite loops because of missing loop increment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Mar 22, 2011
1 parent 786e84c commit bb24205
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2011-03-22 Ulrich Drepper <drepper@gmail.com>

* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
round counter.
* sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.

2011-03-20 H.J. Lu <hongjiu.lu@intel.com>

[BZ #12597]
Expand Down
2 changes: 2 additions & 0 deletions sysdeps/unix/sysv/linux/i386/sysconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ intel_check_word (int name, unsigned int value, bool *has_level_2,
assert (offset == 2);
return (ebx & 0xfff) + 1;
}

++round;
}
/* There is no other cache information anywhere else. */
break;
Expand Down
2 changes: 2 additions & 0 deletions sysdeps/x86_64/cacheinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ intel_check_word (int name, unsigned int value, bool *has_level_2,
assert (offset == 2);
return (ebx & 0xfff) + 1;
}

++round;
}
/* There is no other cache information anywhere else. */
break;
Expand Down

0 comments on commit bb24205

Please sign in to comment.