linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] lockdep: remove unused factor variable from lockdep_stats_show
@ 2011-03-23 12:38 Sergey Senozhatsky
  2011-03-23 12:57 ` Ingo Molnar
  2011-03-23 13:48 ` [tip:core/urgent] lockdep: Remove unused 'factor' variable from lockdep_stats_show() tip-bot for Sergey Senozhatsky
  0 siblings, 2 replies; 4+ messages in thread
From: Sergey Senozhatsky @ 2011-03-23 12:38 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: Ingo Molnar, linux-kernel, Thomas Gleixner, Andrew Morton

lockdep: remove unused factor variable from lockdep_stats_show

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>

---

 kernel/lockdep_proc.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c
index 1969d2f..71edd2f 100644
--- a/kernel/lockdep_proc.c
+++ b/kernel/lockdep_proc.c
@@ -225,7 +225,7 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
 		      nr_irq_read_safe = 0, nr_irq_read_unsafe = 0,
 		      nr_softirq_read_safe = 0, nr_softirq_read_unsafe = 0,
 		      nr_hardirq_read_safe = 0, nr_hardirq_read_unsafe = 0,
-		      sum_forward_deps = 0, factor = 0;
+		      sum_forward_deps = 0;
 
 	list_for_each_entry(class, &all_lock_classes, lock_entry) {
 
@@ -283,13 +283,6 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
 			nr_hardirq_unsafe * nr_hardirq_safe +
 			nr_list_entries);
 
-	/*
-	 * Estimated factor between direct and indirect
-	 * dependencies:
-	 */
-	if (nr_list_entries)
-		factor = sum_forward_deps / nr_list_entries;
-
 #ifdef CONFIG_PROVE_LOCKING
 	seq_printf(m, " dependency chains:             %11lu [max: %lu]\n",
 			nr_lock_chains, MAX_LOCKDEP_CHAINS);


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

* Re: [PATCH] lockdep: remove unused factor variable from lockdep_stats_show
  2011-03-23 12:38 [PATCH] lockdep: remove unused factor variable from lockdep_stats_show Sergey Senozhatsky
@ 2011-03-23 12:57 ` Ingo Molnar
  2011-03-23 13:13   ` Sergey Senozhatsky
  2011-03-23 13:48 ` [tip:core/urgent] lockdep: Remove unused 'factor' variable from lockdep_stats_show() tip-bot for Sergey Senozhatsky
  1 sibling, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2011-03-23 12:57 UTC (permalink / raw)
  To: Sergey Senozhatsky
  Cc: Peter Zijlstra, Ingo Molnar, linux-kernel, Thomas Gleixner,
	Andrew Morton


* Sergey Senozhatsky <sergey.senozhatsky@gmail.com> wrote:

> lockdep: remove unused factor variable from lockdep_stats_show

Please use more readable subject lines in the future. I have changed this one 
to:

  lockdep: Remove unused 'factor' variable from lockdep_stats_show()

Note the capitalization of the sentence, the quotes and the brackets - all 
which which help readability by structuring/differentiating various parts of 
the title properly.

Thanks,

	Ingo

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

* Re: [PATCH] lockdep: remove unused factor variable from lockdep_stats_show
  2011-03-23 12:57 ` Ingo Molnar
@ 2011-03-23 13:13   ` Sergey Senozhatsky
  0 siblings, 0 replies; 4+ messages in thread
From: Sergey Senozhatsky @ 2011-03-23 13:13 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Sergey Senozhatsky, Peter Zijlstra, Ingo Molnar, linux-kernel,
	Thomas Gleixner, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

Hello,

On (03/23/11 13:57), Ingo Molnar wrote:
> * Sergey Senozhatsky <sergey.senozhatsky@gmail.com> wrote:
> 
> > lockdep: remove unused factor variable from lockdep_stats_show
> 
> Please use more readable subject lines in the future. I have changed this one 
> to:
> 
>   lockdep: Remove unused 'factor' variable from lockdep_stats_show()
> 
> Note the capitalization of the sentence, the quotes and the brackets - all 
> which which help readability by structuring/differentiating various parts of 
> the title properly.
> 

Sorry for that. Sure will do. 

Thanks,
	Sergey


[-- Attachment #2: Type: application/pgp-signature, Size: 316 bytes --]

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

* [tip:core/urgent] lockdep: Remove unused 'factor' variable from lockdep_stats_show()
  2011-03-23 12:38 [PATCH] lockdep: remove unused factor variable from lockdep_stats_show Sergey Senozhatsky
  2011-03-23 12:57 ` Ingo Molnar
@ 2011-03-23 13:48 ` tip-bot for Sergey Senozhatsky
  1 sibling, 0 replies; 4+ messages in thread
From: tip-bot for Sergey Senozhatsky @ 2011-03-23 13:48 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, peterz, sergey.senozhatsky, tglx, mingo

Commit-ID:  dec2960827c85253d76938dbfa909df3be34958b
Gitweb:     http://git.kernel.org/tip/dec2960827c85253d76938dbfa909df3be34958b
Author:     Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
AuthorDate: Wed, 23 Mar 2011 14:38:28 +0200
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Wed, 23 Mar 2011 13:54:47 +0100

lockdep: Remove unused 'factor' variable from lockdep_stats_show()

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20110323123828.GB4244@swordfish.minsk.epam.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 kernel/lockdep_proc.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c
index 1969d2f..71edd2f 100644
--- a/kernel/lockdep_proc.c
+++ b/kernel/lockdep_proc.c
@@ -225,7 +225,7 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
 		      nr_irq_read_safe = 0, nr_irq_read_unsafe = 0,
 		      nr_softirq_read_safe = 0, nr_softirq_read_unsafe = 0,
 		      nr_hardirq_read_safe = 0, nr_hardirq_read_unsafe = 0,
-		      sum_forward_deps = 0, factor = 0;
+		      sum_forward_deps = 0;
 
 	list_for_each_entry(class, &all_lock_classes, lock_entry) {
 
@@ -283,13 +283,6 @@ static int lockdep_stats_show(struct seq_file *m, void *v)
 			nr_hardirq_unsafe * nr_hardirq_safe +
 			nr_list_entries);
 
-	/*
-	 * Estimated factor between direct and indirect
-	 * dependencies:
-	 */
-	if (nr_list_entries)
-		factor = sum_forward_deps / nr_list_entries;
-
 #ifdef CONFIG_PROVE_LOCKING
 	seq_printf(m, " dependency chains:             %11lu [max: %lu]\n",
 			nr_lock_chains, MAX_LOCKDEP_CHAINS);

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

end of thread, other threads:[~2011-03-23 13:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-23 12:38 [PATCH] lockdep: remove unused factor variable from lockdep_stats_show Sergey Senozhatsky
2011-03-23 12:57 ` Ingo Molnar
2011-03-23 13:13   ` Sergey Senozhatsky
2011-03-23 13:48 ` [tip:core/urgent] lockdep: Remove unused 'factor' variable from lockdep_stats_show() tip-bot for Sergey Senozhatsky

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).