X86: Don't assert on older Intel CPUs [BZ #20647]
commit6a824767d8948faf10d8d3a602eb4f2a59431601
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 12 Oct 2016 15:22:52 +0000 (12 08:22 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 12 Oct 2016 15:22:52 +0000 (12 08:22 -0700)
tree6fa7dda22dd49a3d56669787de0bea6daa1f9b82
parent5e9d98a3d9eec0a18e6875f6e86a3886fbb7e543
X86: Don't assert on older Intel CPUs [BZ #20647]

Since the maximum CPUID level of older Intel CPUs is 1, change
handle_intel to return -1, instead of assert, when the maximum
CPUID level is less than 2.

[BZ #20647]
* sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
maximum CPUID level is less than 2.
ChangeLog
sysdeps/x86/cacheinfo.c