x86: Consolidate port I/O helpers
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Tue, 5 Apr 2022 23:29:23 +0000 (02:29 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 7 Apr 2022 15:27:52 +0000 (08:27 -0700)
commit1e8f93e18379d05da9fd130eb7d50988a20f8b9a
tree12c5cc4f59c0b0e414612e494ac9e016442442ca
parent15104de122a4f0258981b06ed94cf616a6eb03ef
x86: Consolidate port I/O helpers

There are two implementations of port I/O helpers: one in the kernel and
one in the boot stub.

Move the helpers required for both to <asm/shared/io.h> and use the one
implementation everywhere.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20220405232939.73860-15-kirill.shutemov@linux.intel.com
arch/x86/boot/boot.h
arch/x86/boot/compressed/misc.h
arch/x86/include/asm/io.h
arch/x86/include/asm/shared/io.h [new file with mode: 0644]