x86/platform/uv: When searching for minimums, start at INT_MAX not 99999
authorSteve Wahl <steve.wahl@hpe.com>
Fri, 19 May 2023 19:07:48 +0000 (14:07 -0500)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 31 May 2023 16:34:59 +0000 (09:34 -0700)
commit35bd896ccc2fa8dfb20df705a44e9d26665f1085
tree8bf88137ef1ba13d0c12204474ba96bf15bbc4a1
parente4860f03779cadff011a7a8685c7157ebc133bda
x86/platform/uv: When searching for minimums, start at INT_MAX not 99999

Using a starting value of INT_MAX rather than 999999 or 99999 means
this algorithm won't fail should the numbers being compared ever
exceed this value.

Signed-off-by: Steve Wahl <steve.wahl@hpe.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20230519190752.3297140-5-steve.wahl%40hpe.com
arch/x86/kernel/apic/x2apic_uv_x.c