Skip to contentSkip to conversation

x86: remove unused function cpu_has_ht_siblings()

PATCH Applied Juergen Gross 3 participants 3 messages Nov 17, 2015 – Nov 19, 2015 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: remove unused function cpu_has_ht_siblings()

It is used nowhere.

---
 arch/x86/include/asm/smp.h | 9 ---------
 1 file changed, 9 deletions(-)
arch/x86/include/asm/smp.h +0 -9
index 222a6a3..a438c55 100644
@@ -21,15 +21,6 @@
 extern int smp_num_siblings;
 extern unsigned int num_processors;
 
-static inline bool cpu_has_ht_siblings(void)
-{
-	bool has_siblings = false;
-#ifdef CONFIG_SMP
-	has_siblings = cpu_has_ht && smp_num_siblings > 1;
-#endif
-	return has_siblings;
-}
-
 DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_map);
 DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_core_map);
 /* cpus sharing the last level cache: */
Signature · 1 line
2.6.2
maintainer Applied
#1 lore raw
Quoted 18 lines · Juergen Gross

It is used nowhere.

---
 arch/x86/include/asm/smp.h | 9 ---------
 1 file changed, 9 deletions(-)
arch/x86/include/asm/smp.h +0 -2
index 222a6a3..a438c55 100644
@@ -21,15 +21,6 @@
 extern int smp_num_siblings;
 extern unsigned int num_processors;
 
-static inline bool cpu_has_ht_siblings(void)
-{

arch/x86/include/asm/smp.h line 26

Quoted 10 lines
arch/x86/include/asm/smp.h +0 -7
-	bool has_siblings = false;
-#ifdef CONFIG_SMP
-	has_siblings = cpu_has_ht && smp_num_siblings > 1;
-#endif
-	return has_siblings;
-}
-
 DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_map);
 DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_core_map);
 /* cpus sharing the last level cache: */

Applied, thanks.

Signature · 4 lines
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
#2 lore raw

[tip:x86/cleanups] x86: Remove unused function cpu_has_ht_siblings()

In reply to Juergen Gross
x86: Remove unused function cpu_has_ht_siblings()
Commit-ID:  ed29210cd6a67425026e78aa298fa434e11a74e3
Gitweb:     http://git.kernel.org/tip/ed29210cd6a67425026e78aa298fa434e11a74e3
Author:     Juergen Gross <[email protected]>
AuthorDate: Tue, 17 Nov 2015 13:05:43 +0100
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Tue, 17 Nov 2015 15:40:17 +0100

x86: Remove unused function cpu_has_ht_siblings()

It is used nowhere.

---
 arch/x86/include/asm/smp.h | 9 ---------
 1 file changed, 9 deletions(-)
arch/x86/include/asm/smp.h +0 -9
index 222a6a3..a438c55 100644
@@ -21,15 +21,6 @@
 extern int smp_num_siblings;
 extern unsigned int num_processors;
 
-static inline bool cpu_has_ht_siblings(void)
-{
-	bool has_siblings = false;
-#ifdef CONFIG_SMP
-	has_siblings = cpu_has_ht && smp_num_siblings > 1;
-#endif
-	return has_siblings;
-}
-
 DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_map);
 DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_core_map);
 /* cpus sharing the last level cache: */