Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1271127 > unrolled thread

[PATCH] x86: remove unused function cpu_has_ht_siblings()

Started byJuergen Gross <jgross@suse.com>
First post2015-11-17 13:10 +0100
Last post2015-11-19 11:10 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] x86: remove unused function cpu_has_ht_siblings() Juergen Gross <jgross@suse.com> - 2015-11-17 13:10 +0100
    Re: [PATCH] x86: remove unused function cpu_has_ht_siblings() Borislav Petkov <bp@alien8.de> - 2015-11-17 17:00 +0100
    [tip:x86/cleanups] x86:   Remove unused function cpu_has_ht_siblings() tip-bot for Juergen Gross <tipbot@zytor.com> - 2015-11-19 11:10 +0100

#1271127 — [PATCH] x86: remove unused function cpu_has_ht_siblings()

FromJuergen Gross <jgross@suse.com>
Date2015-11-17 13:10 +0100
Subject[PATCH] x86: remove unused function cpu_has_ht_siblings()
Message-ID<qvNfc-4R6-21@gated-at.bofh.it>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1271359

FromBorislav Petkov <bp@alien8.de>
Date2015-11-17 17:00 +0100
Message-ID<qvQPM-6YM-15@gated-at.bofh.it>
In reply to#1271127
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


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

Fromtip-bot for Juergen Gross <tipbot@zytor.com>
Date2015-11-19 11:10 +0100
Subject[tip:x86/cleanups] x86: Remove unused function cpu_has_ht_siblings()
Message-ID<qwuk9-7U6-9@gated-at.bofh.it>
In reply to#1271127
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: */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web