x86: Check minimum/maximum of non_temporal_threshold [BZ #29953]
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 3 Jan 2023 21:06:48 +0000 (13:06 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 3 Jan 2023 21:25:50 +0000 (13:25 -0800)
commit48b74865c63840b288bd85b4d8743533b73b339b
tree5fb9416aa562d2e9d28c5a8243d2ce58829edf3a
parentc80b311ac0a65fea2d34214d937b8313fc9e29a5
x86: Check minimum/maximum of non_temporal_threshold [BZ #29953]

The minimum non_temporal_threshold is 0x4040.  non_temporal_threshold may
be set to less than the minimum value when the shared cache size isn't
available (e.g., in an emulator) or by the tunable.  Add checks for
minimum and maximum of non_temporal_threshold.

This fixes BZ #29953.
sysdeps/x86/dl-cacheinfo.h