]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: Move Hyper-V misc functionality to arch-neutral code
authorMichael Kelley <mikelley@microsoft.com>
Wed, 14 Jul 2021 18:34:47 +0000 (11:34 -0700)
committerWei Liu <wei.liu@kernel.org>
Thu, 15 Jul 2021 12:59:45 +0000 (12:59 +0000)
commitc7fc68d6a4b510c5c8638dfd758ac9916c969590
tree53accb41ffae4921b6eaf92ec7c50ffc62f9d19a
parent0961d8b07bf509cf327a0c24a4cf1a45836149dc
Drivers: hv: Move Hyper-V misc functionality to arch-neutral code

The check for whether hibernation is possible, and the enabling of
Hyper-V panic notification during kexec, are both architecture neutral.
Move the code from under arch/x86 and into drivers/hv/hv_common.c where
it can also be used for ARM64.

No functional change.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1626287687-2045-4-git-send-email-mikelley@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/hyperv/hv_init.c
arch/x86/kernel/cpu/mshyperv.c
drivers/hv/hv_common.c