* [PATCH] x86/mm: Remove unused cpu variable
@ 2019-01-29 7:36 Shaokun Zhang
2019-01-29 17:39 ` [tip:x86/cleanups] x86/mm/tlb: " tip-bot for Shaokun Zhang
0 siblings, 1 reply; 2+ messages in thread
From: Shaokun Zhang @ 2019-01-29 7:36 UTC (permalink / raw)
To: x86, linux-kernel
Cc: Shaokun Zhang, Andy Lutomirski, Dave Hansen, Peter Zijlstra
cpu variable is never used after commit <a2055abe9c67> ("x86/mm: Pass
flush_tlb_info to flush_tlb_others() etc"), so remove it.
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
arch/x86/mm/tlb.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c
index 999d6d8f0bef..bc4bc7b2f075 100644
--- a/arch/x86/mm/tlb.c
+++ b/arch/x86/mm/tlb.c
@@ -685,9 +685,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask,
* that UV should be updated so that smp_call_function_many(),
* etc, are optimal on UV.
*/
- unsigned int cpu;
-
- cpu = smp_processor_id();
cpumask = uv_flush_tlb_others(cpumask, info);
if (cpumask)
smp_call_function_many(cpumask, flush_tlb_func_remote,
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:x86/cleanups] x86/mm/tlb: Remove unused cpu variable
2019-01-29 7:36 [PATCH] x86/mm: Remove unused cpu variable Shaokun Zhang
@ 2019-01-29 17:39 ` tip-bot for Shaokun Zhang
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Shaokun Zhang @ 2019-01-29 17:39 UTC (permalink / raw)
To: linux-tip-commits
Cc: mingo, linux-kernel, peterz, tglx, luto, x86, hpa, dave.hansen,
zhangshaokun, bp, mingo
Commit-ID: 691b9ab6c9676e5868a4787be9041dd990005311
Gitweb: https://git.kernel.org/tip/691b9ab6c9676e5868a4787be9041dd990005311
Author: Shaokun Zhang <zhangshaokun@hisilicon.com>
AuthorDate: Tue, 29 Jan 2019 15:36:57 +0800
Committer: Borislav Petkov <bp@suse.de>
CommitDate: Tue, 29 Jan 2019 18:32:30 +0100
x86/mm/tlb: Remove unused cpu variable
The "cpu" local variable became unused after
a2055abe9c67 ("x86/mm: Pass flush_tlb_info to flush_tlb_others() etc").
Remove it.
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/1548747417-33551-1-git-send-email-zhangshaokun@hisilicon.com
---
arch/x86/mm/tlb.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c
index 999d6d8f0bef..bc4bc7b2f075 100644
--- a/arch/x86/mm/tlb.c
+++ b/arch/x86/mm/tlb.c
@@ -685,9 +685,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask,
* that UV should be updated so that smp_call_function_many(),
* etc, are optimal on UV.
*/
- unsigned int cpu;
-
- cpu = smp_processor_id();
cpumask = uv_flush_tlb_others(cpumask, info);
if (cpumask)
smp_call_function_many(cpumask, flush_tlb_func_remote,
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-29 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-29 7:36 [PATCH] x86/mm: Remove unused cpu variable Shaokun Zhang
2019-01-29 17:39 ` [tip:x86/cleanups] x86/mm/tlb: " tip-bot for Shaokun Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).