[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-515f0453752e3daba7c47d37d9172a66509a56fd@git.kernel.org>
Date: Mon, 10 Jun 2019 13:52:11 -0700
From: tip-bot for Uros Bizjak <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, mingo@...nel.org, x86@...nel.org,
bp@...e.de, reinette.chatre@...el.com, mingo@...hat.com,
ubizjak@...il.com, tglx@...utronix.de, hpa@...or.com,
fenghua.yu@...el.com
Subject: [tip:x86/cache] x86/resctrl: Use _ASM_BX to avoid ifdeffery
Commit-ID: 515f0453752e3daba7c47d37d9172a66509a56fd
Gitweb: https://git.kernel.org/tip/515f0453752e3daba7c47d37d9172a66509a56fd
Author: Uros Bizjak <ubizjak@...il.com>
AuthorDate: Thu, 6 Jun 2019 22:00:44 +0200
Committer: Borislav Petkov <bp@...e.de>
CommitDate: Mon, 10 Jun 2019 22:36:38 +0200
x86/resctrl: Use _ASM_BX to avoid ifdeffery
Use the _ASM_BX macro which expands to either %rbx or %ebx, depending on
the 32-bit or 64-bit config selected.
Signed-off-by: Uros Bizjak <ubizjak@...il.com>
Signed-off-by: Borislav Petkov <bp@...e.de>
Acked-by: Reinette Chatre <reinette.chatre@...el.com>
Cc: Fenghua Yu <fenghua.yu@...el.com>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: x86-ml <x86@...nel.org>
Link: https://lkml.kernel.org/r/20190606200044.5730-1-ubizjak@gmail.com
---
arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c b/arch/x86/kernel/cpu/resctrl/pseudo_lock.c
index 604c0e3bcc83..09408794eab2 100644
--- a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c
+++ b/arch/x86/kernel/cpu/resctrl/pseudo_lock.c
@@ -431,11 +431,7 @@ static int pseudo_lock_fn(void *_rdtgrp)
#else
register unsigned int line_size asm("esi");
register unsigned int size asm("edi");
-#ifdef CONFIG_X86_64
- register void *mem_r asm("rbx");
-#else
- register void *mem_r asm("ebx");
-#endif /* CONFIG_X86_64 */
+ register void *mem_r asm(_ASM_BX);
#endif /* CONFIG_KASAN */
/*
Powered by blists - more mailing lists