Skip to content

Commit 4c7bfa3

Browse files
Shuo Liuingomolnar
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 <shuo.a.liu@intel.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Link: https://lore.kernel.org/r/20200806114111.9448-1-shuo.a.liu@intel.com
1 parent 86d709c commit 4c7bfa3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)