diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2023-08-08 15:03:59 -0700 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2023-08-09 11:58:26 -0700 |
commit | 9faee3ecbfedebc6cdd0d96bfb2788ad8d62ef7e (patch) | |
tree | 6bd59860f9b9709bcb3410ad723113a2be88bf1c /arch/x86/kernel/apic/local.h | |
parent | 9a2a637af06621e69893e5d5cde3c0eba5aeba0f (diff) | |
download | linux-stable-9faee3ecbfedebc6cdd0d96bfb2788ad8d62ef7e.tar.gz linux-stable-9faee3ecbfedebc6cdd0d96bfb2788ad8d62ef7e.tar.bz2 linux-stable-9faee3ecbfedebc6cdd0d96bfb2788ad8d62ef7e.zip |
x86/ioapic/32: Decrapify phys_id_present_map operation
The operation to set the IOAPIC ID in phys_id_present_map is as convoluted
as it can be.
1) Allocate a bitmap of 32byte size on the stack
2) Zero the bitmap and set the IOAPIC ID bit
3) Or the temporary bitmap over phys_id_present_map
The same functionality can be achieved by setting the IOAPIC ID bit
directly in the phys_id_present_map.
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/kernel/apic/local.h')
0 files changed, 0 insertions, 0 deletions