summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorShuo Liu <shuo.a.liu@intel.com>2020-08-06 19:41:11 +0800
committerIngo Molnar <mingo@kernel.org>2020-08-07 01:32:00 +0200
commit4c7bfa383efd837d4ab8f86ef05886959ed8bfe5 (patch)
tree5bac3e94dd5fbaf6ac4d9c3188d1f24c9b243416 /arch
parent86d709ce30eaa65706090865662a08d7bdd30c54 (diff)
downloadlinux-stable-4c7bfa383efd837d4ab8f86ef05886959ed8bfe5.tar.gz
linux-stable-4c7bfa383efd837d4ab8f86ef05886959ed8bfe5.tar.bz2
linux-stable-4c7bfa383efd837d4ab8f86ef05886959ed8bfe5.zip
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
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/cpu/acrn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/acrn.c b/arch/x86/kernel/cpu/acrn.c
index 3b08cdfc6514..0b2c03943ac6 100644
--- a/arch/x86/kernel/cpu/acrn.c
+++ b/arch/x86/kernel/cpu/acrn.c
@@ -17,9 +17,9 @@
#include <asm/idtentry.h>
#include <asm/irq_regs.h>
-static uint32_t __init acrn_detect(void)
+static u32 __init acrn_detect(void)
{
- return hypervisor_cpuid_base("ACRNACRNACRN\0\0", 0);
+ return hypervisor_cpuid_base("ACRNACRNACRN", 0);
}
static void __init acrn_init_platform(void)