Skip to content

Commit 0a7a005

Browse files
Saurabh Sengarliuw
authored andcommitted
x86/hyperv: Make hv_get_nmi_reason public
Move hv_get_nmi_reason to .h file so it can be used in other modules as well. Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/1681192532-15460-4-git-send-email-ssengar@linux.microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
1 parent c26e052 commit 0a7a005

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

arch/x86/include/asm/mshyperv.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ typedef int (*hyperv_fill_flush_list_func)(
2929

3030
void hyperv_vector_handler(struct pt_regs *regs);
3131

32+
static inline unsigned char hv_get_nmi_reason(void)
33+
{
34+
return 0;
35+
}
36+
3237
#if IS_ENABLED(CONFIG_HYPERV)
3338
extern int hyperv_init_cpuhp;
3439

arch/x86/kernel/cpu/mshyperv.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,6 @@ static uint32_t __init ms_hyperv_platform(void)
248248
return HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS;
249249
}
250250

251-
static unsigned char hv_get_nmi_reason(void)
252-
{
253-
return 0;
254-
}
255-
256251
#ifdef CONFIG_X86_LOCAL_APIC
257252
/*
258253
* Prior to WS2016 Debug-VM sends NMIs to all CPUs which makes

0 commit comments

Comments
 (0)