[lkml]   [2019]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH v2 2/9] x86/cpu/amd: Ifdef 32bit only assembler for 32bit
From: Andi Kleen <>

The "vide" inline assembler is only needed on 32bit kernels for old
32bit only CPUs. Ifdef it to not include it into 64bit kernels.

Signed-off-by: Andi Kleen <>
arch/x86/kernel/cpu/amd.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 1bcb489e07e7..fb6a64bd765f 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -82,12 +82,14 @@ static inline int wrmsrl_amd_safe(unsigned msr, unsigned long long val)
* performance at the same time..

+#ifdef CONFIG_X86_32
extern __visible void vide(void);
".globl vide\n"
".type vide, @function\n"
".align 4\n"
"vide: ret\n");

static void init_amd_k5(struct cpuinfo_x86 *c)
 \ /
  Last update: 2019-03-30 01:49    [W:0.060 / U:2.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site