x86/platform/uv: Helper functions for allocating and freeing conversion tables
authorSteve Wahl <steve.wahl@hpe.com>
Fri, 19 May 2023 19:07:49 +0000 (14:07 -0500)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 31 May 2023 16:34:59 +0000 (09:34 -0700)
commit45e9f9a99529a54a7ed195eea4aad102b9eadb23
tree59351f3e2f2875e3903a57b7c43a8dd4efa3d69e
parent35bd896ccc2fa8dfb20df705a44e9d26665f1085
x86/platform/uv: Helper functions for allocating and freeing conversion tables

Add alloc_conv_table() and FREE_1_TO_1_TABLE() to reduce duplicated
code among the conversion tables we use.

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-6-steve.wahl%40hpe.com
arch/x86/kernel/apic/x2apic_uv_x.c