Skip to content

Commit

Permalink
perfcounters: remove ->nr_inherited
Browse files Browse the repository at this point in the history
Impact: remove dead code

nr_inherited was not maintained correctly (not decremented) - and also
not used - remove it.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Dec 23, 2008
1 parent 0dff86a commit 8fe91e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion include/linux/perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ struct perf_counter {
struct task_struct *task;
struct file *filp;

unsigned int nr_inherited;
struct perf_counter *parent;
/*
* Protect attach/detach:
Expand Down
1 change: 0 additions & 1 deletion kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,6 @@ inherit_counter(struct perf_counter *parent_counter,
child_ctx->nr_counters++;

child_counter->parent = parent_counter;
parent_counter->nr_inherited++;
/*
* inherit into child's child as well:
*/
Expand Down

0 comments on commit 8fe91e6

Please sign in to comment.