public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: remove unused function cpu_has_ht_siblings()
@ 2015-11-17 12:05 Juergen Gross
  2015-11-17 15:58 ` Borislav Petkov
  2015-11-19 10:06 ` [tip:x86/cleanups] x86: Remove " tip-bot for Juergen Gross
  0 siblings, 2 replies; 3+ messages in thread
From: Juergen Gross @ 2015-11-17 12:05 UTC (permalink / raw)
  To: linux-kernel, x86, hpa, tglx, mingo; +Cc: Juergen Gross

It is used nowhere.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
 arch/x86/include/asm/smp.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h
index 222a6a3..a438c55 100644
--- a/arch/x86/include/asm/smp.h
+++ b/arch/x86/include/asm/smp.h
@@ -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: */
-- 
2.6.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86: remove unused function cpu_has_ht_siblings()
  2015-11-17 12:05 [PATCH] x86: remove unused function cpu_has_ht_siblings() Juergen Gross
@ 2015-11-17 15:58 ` Borislav Petkov
  2015-11-19 10:06 ` [tip:x86/cleanups] x86: Remove " tip-bot for Juergen Gross
  1 sibling, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2015-11-17 15:58 UTC (permalink / raw)
  To: Juergen Gross; +Cc: linux-kernel, x86, hpa, tglx, mingo

On Tue, Nov 17, 2015 at 01:05:43PM +0100, Juergen Gross wrote:
> It is used nowhere.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>
> ---
>  arch/x86/include/asm/smp.h | 9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h
> index 222a6a3..a438c55 100644
> --- a/arch/x86/include/asm/smp.h
> +++ b/arch/x86/include/asm/smp.h
> @@ -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: */
> -- 

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:x86/cleanups] x86: Remove unused function cpu_has_ht_siblings()
  2015-11-17 12:05 [PATCH] x86: remove unused function cpu_has_ht_siblings() Juergen Gross
  2015-11-17 15:58 ` Borislav Petkov
@ 2015-11-19 10:06 ` tip-bot for Juergen Gross
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Juergen Gross @ 2015-11-19 10:06 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: tglx, hpa, jgross, mingo, linux-kernel

Commit-ID:  ed29210cd6a67425026e78aa298fa434e11a74e3
Gitweb:     http://git.kernel.org/tip/ed29210cd6a67425026e78aa298fa434e11a74e3
Author:     Juergen Gross <jgross@suse.com>
AuthorDate: Tue, 17 Nov 2015 13:05:43 +0100
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 17 Nov 2015 15:40:17 +0100

x86: Remove unused function cpu_has_ht_siblings()

It is used nowhere.

Signed-off-by: Juergen Gross <jgross@suse.com>
Link: http://lkml.kernel.org/r/1447761943-770-1-git-send-email-jgross@suse.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 arch/x86/include/asm/smp.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h
index 222a6a3..a438c55 100644
--- a/arch/x86/include/asm/smp.h
+++ b/arch/x86/include/asm/smp.h
@@ -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: */

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-19 10:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-17 12:05 [PATCH] x86: remove unused function cpu_has_ht_siblings() Juergen Gross
2015-11-17 15:58 ` Borislav Petkov
2015-11-19 10:06 ` [tip:x86/cleanups] x86: Remove " tip-bot for Juergen Gross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox