OSDN Git Service

x86/hyperv: Split hyperv-tlfs.h into arch dependent and independent files
authorMichael Kelley <mikelley@microsoft.com>
Wed, 22 Apr 2020 19:57:36 +0000 (12:57 -0700)
committerWei Liu <wei.liu@kernel.org>
Wed, 20 May 2020 09:13:58 +0000 (09:13 +0000)
commitc55a844f46f958b4df804eccd734b86795e40359
tree09846a7d5cfa4aeb194eb96de4ee4ca1134058bb
parenta8a42d0284f18a64d540a604aecec9f961964e3b
x86/hyperv: Split hyperv-tlfs.h into arch dependent and independent files

In preparation for adding ARM64 support, split hyperv-tlfs.h into
architecture dependent and architecture independent files, similar
to what has been done with mshyperv.h. Move architecture independent
definitions into include/asm-generic/hyperv-tlfs.h.  The split will
avoid duplicating significant lines of code in the ARM64 version of
hyperv-tlfs.h.  The split has no functional impact.

Some of the common definitions have "X64" in the symbol name.  Change
these to remove the "X64" in the architecture independent version of
hyperv-tlfs.h, but add aliases with the "X64" in the x86 version so
that x86 code will continue to compile.  A later patch set will
change all the references and allow removal of the aliases.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20200422195737.10223-4-mikelley@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
MAINTAINERS
arch/x86/include/asm/hyperv-tlfs.h
include/asm-generic/hyperv-tlfs.h [new file with mode: 0644]