Skip to contentSkip to conversation

x86/platform/uv: drop last traces of uv_flush_tlb_others

PATCH Applied Jiri Slaby 4 participants 4 messages Nov 9, 2020 – Nov 11, 2020

Subsystems (2)
lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 x86/platform/uv: drop last traces of uv_flush_tlb_others

Commit 39297dde7390 ("x86/platform/uv: Remove UV BAU TLB Shootdown Handler") removed uv_flush_tlb_others. Its declaration was removed also from asm/uv/uv.h. But only for the CONFIG_X86_UV=y case. The inline definition (!X86_UV case) is still in place.

So remove this implementation with everything what was added to support uv_flush_tlb_others:
* include of asm/tlbflush.h
* forward declarations of struct cpumask, mm_struct, and flush_tlb_info

Cc Mike Travis <[email protected]>
Cc Dimitri Sivanich <[email protected]>
Cc Steve Wahl <[email protected]>
Cc Russ Anderson <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
---
 arch/x86/include/asm/uv/uv.h | 10 ----------
 1 file changed, 10 deletions(-)
arch/x86/include/asm/uv/uv.h +0 -10
index 172d3e4a9e4b..648eb23fe7f0 100644
@@ -2,14 +2,8 @@
 #ifndef _ASM_X86_UV_UV_H
 #define _ASM_X86_UV_UV_H
 
-#include <asm/tlbflush.h>
-
 enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC};
 
-struct cpumask;
-struct mm_struct;
-struct flush_tlb_info;
-
 #ifdef CONFIG_X86_UV
 #include <linux/efi.h>
 
@@ -44,10 +38,6 @@ static inline int is_uv_system(void)	{ return 0; }
 static inline int is_uv_hubbed(int uv)	{ return 0; }
 static inline void uv_cpu_init(void)	{ }
 static inline void uv_system_init(void)	{ }
-static inline const struct cpumask *
-uv_flush_tlb_others(const struct cpumask *cpumask,
-		    const struct flush_tlb_info *info)
-{ return cpumask; }
 
 #endif	/* X86_UV */
 
Signature · 1 line
2.29.2
Acked-by on v1 1/1
#1 lore raw

Thanks Jiri for catching that.

Quoted 55 lines · Jiri Slaby

Commit 39297dde7390 ("x86/platform/uv: Remove UV BAU TLB Shootdown Handler") removed uv_flush_tlb_others. Its declaration was removed also from asm/uv/uv.h. But only for the CONFIG_X86_UV=y case. The inline definition (!X86_UV case) is still in place.

So remove this implementation with everything what was added to support uv_flush_tlb_others:
* include of asm/tlbflush.h
* forward declarations of struct cpumask, mm_struct, and flush_tlb_info

Cc Mike Travis <[email protected]>
Cc Dimitri Sivanich <[email protected]>
Cc Steve Wahl <[email protected]>
Cc Russ Anderson <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
---
  arch/x86/include/asm/uv/uv.h | 10 ----------
  1 file changed, 10 deletions(-)
arch/x86/include/asm/uv/uv.h +0 -10
index 172d3e4a9e4b..648eb23fe7f0 100644
@@ -2,14 +2,8 @@
  #ifndef _ASM_X86_UV_UV_H
  #define _ASM_X86_UV_UV_H
 
-#include <asm/tlbflush.h>
-
  enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC};
 
-struct cpumask;
-struct mm_struct;
-struct flush_tlb_info;
-
  #ifdef CONFIG_X86_UV
  #include <linux/efi.h>
 
@@ -44,10 +38,6 @@ static inline int is_uv_system(void)	{ return 0; }
  static inline int is_uv_hubbed(int uv)	{ return 0; }
  static inline void uv_cpu_init(void)	{ }
  static inline void uv_system_init(void)	{ }
-static inline const struct cpumask *
-uv_flush_tlb_others(const struct cpumask *cpumask,
-		    const struct flush_tlb_info *info)
-{ return cpumask; }
 
  #endif	/* X86_UV */
 
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Jiri Slaby
Quoted 57 lines · Jiri Slaby

Commit 39297dde7390 ("x86/platform/uv: Remove UV BAU TLB Shootdown Handler") removed uv_flush_tlb_others. Its declaration was removed also from asm/uv/uv.h. But only for the CONFIG_X86_UV=y case. The inline definition (!X86_UV case) is still in place.

So remove this implementation with everything what was added to support uv_flush_tlb_others:
* include of asm/tlbflush.h
* forward declarations of struct cpumask, mm_struct, and flush_tlb_info

Cc Mike Travis <[email protected]>
Cc Dimitri Sivanich <[email protected]>
Cc Steve Wahl <[email protected]>
Cc Russ Anderson <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
---
 arch/x86/include/asm/uv/uv.h | 10 ----------
 1 file changed, 10 deletions(-)
arch/x86/include/asm/uv/uv.h +0 -10
index 172d3e4a9e4b..648eb23fe7f0 100644
@@ -2,14 +2,8 @@
 #ifndef _ASM_X86_UV_UV_H
 #define _ASM_X86_UV_UV_H
 
-#include <asm/tlbflush.h>
-
 enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC};
 
-struct cpumask;
-struct mm_struct;
-struct flush_tlb_info;
-
 #ifdef CONFIG_X86_UV
 #include <linux/efi.h>
 
@@ -44,10 +38,6 @@ static inline int is_uv_system(void)	{ return 0; }
 static inline int is_uv_hubbed(int uv)	{ return 0; }
 static inline void uv_cpu_init(void)	{ }
 static inline void uv_system_init(void)	{ }
-static inline const struct cpumask *
-uv_flush_tlb_others(const struct cpumask *cpumask,
-		    const struct flush_tlb_info *info)
-{ return cpumask; }
 
 #endif	/* X86_UV */
 
Signature · 1 line
2.29.2
Signature · 1 line
Steve Wahl, Hewlett Packard Enterprise
merge bot Applied
#3 lore raw

[tip: x86/urgent] x86/platform/uv: Drop last traces of uv_flush_tlb_others

In reply to Jiri Slaby
The following commit has been merged into the x86/urgent branch of tip:

The following commit has been merged into the x86/urgent branch of tip:

Commit-ID:     b2896458b850ec7cb69b054b195b4b399f7e1f22
Gitweb:        https://git.kernel.org/tip/b2896458b850ec7cb69b054b195b4b399f7e1f22
Author:        Jiri Slaby <[email protected]>
AuthorDate:    Mon, 09 Nov 2020 10:36:53 +01:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Wed, 11 Nov 2020 13:16:51 +01:00

x86/platform/uv: Drop last traces of uv_flush_tlb_others

Commit 39297dde7390 ("x86/platform/uv: Remove UV BAU TLB Shootdown Handler") removed uv_flush_tlb_others. Its declaration was removed also from asm/uv/uv.h. But only for the CONFIG_X86_UV=y case. The inline definition (!X86_UV case) is still in place.

So remove this implementation with everything what was added to support uv_flush_tlb_others:
* include of asm/tlbflush.h
* forward declarations of struct cpumask, mm_struct, and flush_tlb_info

---
 arch/x86/include/asm/uv/uv.h | 10 ----------
 1 file changed, 10 deletions(-)
arch/x86/include/asm/uv/uv.h +0 -10
index 172d3e4..648eb23 100644
@@ -2,14 +2,8 @@
 #ifndef _ASM_X86_UV_UV_H
 #define _ASM_X86_UV_UV_H
 
-#include <asm/tlbflush.h>
-
 enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC};
 
-struct cpumask;
-struct mm_struct;
-struct flush_tlb_info;
-
 #ifdef CONFIG_X86_UV
 #include <linux/efi.h>
 
@@ -44,10 +38,6 @@ static inline int is_uv_system(void)	{ return 0; }
 static inline int is_uv_hubbed(int uv)	{ return 0; }
 static inline void uv_cpu_init(void)	{ }
 static inline void uv_system_init(void)	{ }
-static inline const struct cpumask *
-uv_flush_tlb_others(const struct cpumask *cpumask,
-		    const struct flush_tlb_info *info)
-{ return cpumask; }
 
 #endif	/* X86_UV */