Last change caused infinite loops because of missing loop increment.
authorUlrich Drepper <drepper@gmail.com>
Tue, 22 Mar 2011 05:52:43 +0000 (01:52 -0400)
committerUlrich Drepper <drepper@gmail.com>
Tue, 22 Mar 2011 05:52:43 +0000 (01:52 -0400)
ChangeLog
sysdeps/unix/sysv/linux/i386/sysconf.c
sysdeps/x86_64/cacheinfo.c

index 8e59560..7c53795 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index 4ea1a2b..1f5d3b0 100644 (file)
@@ -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;
index fdd6427..bd4be3d 100644 (file)
@@ -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;