summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/apic.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2023-08-09 01:04:10 +0300
committerDave Hansen <dave.hansen@linux.intel.com>2023-08-09 21:58:31 +0300
commita9d608c22aeecaa6cd34717a8576318ae2295379 (patch)
treeb480e0fa99af8626b064522cdb4b1420d55dab74 /arch/x86/include/asm/apic.h
parentd92e5e7cf580ac59678fa40fd99aa8eb00f1ff52 (diff)
downloadlinux-a9d608c22aeecaa6cd34717a8576318ae2295379.tar.xz
x86/apic: Simplify X2APIC ID validation
Currently, x2apic_max_apicid==0 means that there is no max APIC id limit. But, this means that 0 needs to be special-cased. Designate UINT_MAX to mean unlimited so that a plain old less than or equal compare works and there is no special-casing. Replace the 0 initialization with UINT_MAX. [ dhansen: muck with changelog ] Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Michael Kelley <mikelley@microsoft.com> Tested-by: Sohil Mehta <sohil.mehta@intel.com> Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
Diffstat (limited to 'arch/x86/include/asm/apic.h')
0 files changed, 0 insertions, 0 deletions