Skip to content

Commit 4c7bfa3

Browse files
Shuo LiuIngo Molnar
authored andcommitted
x86/acrn: Remove redundant chars from ACRN signature
hypervisor_cpuid_base() only handles 12 chars of the hypervisor signature string but is provided with 14 chars. Remove the redundancy. Additionally, replace the user space uint32_t with preferred kernel type u32. Signed-off-by: Shuo Liu <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 86d709c commit 4c7bfa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/cpu/acrn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
#include <asm/idtentry.h>
1818
#include <asm/irq_regs.h>
1919

20-
static uint32_t __init acrn_detect(void)
20+
static u32 __init acrn_detect(void)
2121
{
22-
return hypervisor_cpuid_base("ACRNACRNACRN\0\0", 0);
22+
return hypervisor_cpuid_base("ACRNACRNACRN", 0);
2323
}
2424

2525
static void __init acrn_init_platform(void)

0 commit comments

Comments
 (0)